reuse remove_task in handle_task_wakeup

This commit is contained in:
Evan Almloff committed 2024-03-07 20:47:43 -06:00
1 parent 3d7f419636
commit e72bf5820f
1 file changed
+1 -5
+1 -5
View File
@@ -171,11 +171,7 @@ impl Runtime {
.borrow_mut()
.remove(&id);
// Remove it from the scheduler
self.tasks.borrow_mut().try_remove(id.0);
// Remove it from the suspended tasks
self.suspended_tasks.borrow_mut().remove(&id);
self.remove_task(id);
}
// Remove the scope from the stack