mirror of https://github.com/stjepang/smol
Always notify, even just after waking up
This commit is contained in:
parent
ccab5ca514
commit
6b9b7cce35
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue