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) => {
|
Some(r) => {
|
||||||
// Wake up.
|
// Wake up.
|
||||||
if !self.wake() {
|
self.wake();
|
||||||
// If already woken, notify another worker.
|
// Notify another worker.
|
||||||
self.global.notify();
|
self.global.notify();
|
||||||
}
|
|
||||||
|
|
||||||
// Bump the ticker.
|
// Bump the ticker.
|
||||||
let ticker = self.ticker.get();
|
let ticker = self.ticker.get();
|
||||||
|
|
Loading…
Reference in New Issue