From 4309d58f9c8beb6a32c1d6d998ad85f4cdf74350 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 18 Apr 2012 01:38:27 +0200 Subject: [PATCH] Timeout event worker threads --- libs/axl/axel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/axl/axel.py b/libs/axl/axel.py index 0ab8ce32..86921a97 100644 --- a/libs/axl/axel.py +++ b/libs/axl/axel.py @@ -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: