Skip to content

Commit 6359b93

Browse files
committed
fix(executor): decrement refcount if panicking
1 parent 1ff10ed commit 6359b93

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • compio-executor/src/task

compio-executor/src/task/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -305,13 +305,6 @@ impl Task {
305305

306306
header.shared.store(ptr::null_mut(), Release);
307307

308-
// Dropping the future/result and waker during unwinding on unwind-unsafe
309-
// types could trigger a second panic. Skip content drops if already panicking.
310-
if ::std::thread::panicking() {
311-
trace!("Skipping content drops during panic");
312-
return;
313-
}
314-
315308
if !state.is_completed() {
316309
trace!("Dropping future");
317310
// The task has not completed yet, drop future

0 commit comments

Comments
 (0)