don't wait so long on the first idle poll

This commit is contained in:
Daniel Pavel 2013-06-20 13:12:29 +02:00
parent 47e22b788f
commit 31e134c1e0
1 changed files with 1 additions and 1 deletions

View File

@ -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():