Actually do what EventLoop::deschedule says

This commit is contained in:
Alex Crichton 2016-08-02 10:39:06 -07:00
parent 79760da66c
commit 1b07e91834

View File

@ -231,8 +231,8 @@ impl Loop {
fn deschedule(&self, token: usize) {
let mut dispatch = self.dispatch.borrow_mut();
dispatch.get_mut(token).unwrap();
// TODO: was... this supposed to do something?
let sched = dispatch.get_mut(token).unwrap();
sched.waiter = None;
}
fn consume_queue(&self) {