fix: poll_tick does not register waker if ready (#2276)

This commit is contained in:
Matthias Seitz
2023-04-16 22:45:57 +02:00
committed by GitHub
parent 348e7301a3
commit 581e9ffcc4
4 changed files with 6 additions and 0 deletions

View File

@ -715,6 +715,8 @@ impl PeersManager {
}
if self.refill_slots_interval.poll_tick(cx).is_ready() {
// this ensures the manager will be polled periodically, see [Interval::poll_tick]
let _ = self.refill_slots_interval.poll_tick(cx);
self.fill_outbound_slots();
}