don't wait so long on the first idle poll
This commit is contained in:
parent
47e22b788f
commit
31e134c1e0
|
@ -140,7 +140,7 @@ class EventsListener(_threading.Thread):
|
|||
last_tick = 0
|
||||
# the first idle read -- delay it a bit, and make sure to stagger
|
||||
# idle reads for multiple receivers
|
||||
idle_reads = _IDLE_READS * 2 + (ihandle % 5) * 4
|
||||
idle_reads = _IDLE_READS + (ihandle % 5) * 2
|
||||
|
||||
while self._active:
|
||||
if self._queued_notifications.empty():
|
||||
|
|
Loading…
Reference in New Issue