Timeout event worker threads

This commit is contained in:
Ruud
2012-04-18 01:38:27 +02:00
parent 7c2233b266
commit 4309d58f9c
+1 -1
View File
@@ -179,7 +179,7 @@ class Event(object):
""" Executes all handlers stored in the queue """
while True:
try:
h_ = self.queue.get()
h_ = self.queue.get(timeout = 2)
handler, memoize, timeout = self.handlers[h_]
if self.lock and self.in_order: