Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Sep 9, 2023
1 parent 2cd49c7 commit 464e162
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tokio/src/runtime/task/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,8 @@ fn panic_to_error<S: Schedule>(
panic: Box<dyn Any + Send + 'static>,
) -> JoinError {
// if task has a scheduler, then use it, otherwise use scheduer in context of thread
match scheduler {
Some(scheduler) => {
scheduler.unhandled_panic();
}
None => {
// currently do nothing here
}
if let Some(scheduler) = scheduler{
scheduler.unhandled_panic();
}
JoinError::panic(task_id, panic)
}

0 comments on commit 464e162

Please sign in to comment.