Timeout event worker threads
This commit is contained in:
1 parent
7c2233b266
commit
4309d58f9c
1 file changed
+1
-1
+1
-1
@@ -179,7 +179,7 @@ class Event(object):
|
|||||||
""" Executes all handlers stored in the queue """
|
""" Executes all handlers stored in the queue """
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
h_ = self.queue.get()
|
h_ = self.queue.get(timeout = 2)
|
||||||
handler, memoize, timeout = self.handlers[h_]
|
handler, memoize, timeout = self.handlers[h_]
|
||||||
|
|
||||||
if self.lock and self.in_order:
|
if self.lock and self.in_order:
|
||||||
|
|||||||
Reference in new issue
Block a user