Always notify, even just after waking up

This commit is contained in:
Stjepan Glavina 2020-06-22 18:57:43 +02:00
parent ccab5ca514
commit 6b9b7cce35
1 changed files with 3 additions and 4 deletions

View File

@ -306,10 +306,9 @@ impl Worker {
}
Some(r) => {
// Wake up.
if !self.wake() {
// If already woken, notify another worker.
self.global.notify();
}
self.wake();
// Notify another worker.
self.global.notify();
// Bump the ticker.
let ticker = self.ticker.get();