Set the CURRENT_LOOP for processing messages

This ensures that timeouts and callbacks are run with the TLS var set
This commit is contained in:
Alex Crichton 2016-08-05 14:00:59 -07:00
parent 304914b707
commit 42a0a10294

View File

@ -203,7 +203,9 @@ impl Loop {
// process the whole queue of messages.
if token == 0 {
debug!("consuming notification queue");
self.consume_queue();
CURRENT_LOOP.set(&self, || {
self.consume_queue();
});
continue
}