reuse remove_task in handle_task_wakeup
This commit is contained in:
1 parent
3d7f419636
commit
e72bf5820f
1 file changed
+1
-5
@@ -171,11 +171,7 @@ impl Runtime {
|
|||||||
.borrow_mut()
|
.borrow_mut()
|
||||||
.remove(&id);
|
.remove(&id);
|
||||||
|
|
||||||
// Remove it from the scheduler
|
self.remove_task(id);
|
||||||
self.tasks.borrow_mut().try_remove(id.0);
|
|
||||||
|
|
||||||
// Remove it from the suspended tasks
|
|
||||||
self.suspended_tasks.borrow_mut().remove(&id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove the scope from the stack
|
// Remove the scope from the stack
|
||||||
|
|||||||
Reference in new issue
Block a user