From 51f9b5c67388ca382172e9c2682c62f93249a8e9 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 2 Nov 2012 17:28:39 +0100 Subject: [PATCH] Clear queu tasks. fix #997 --- libs/axl/axel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/axl/axel.py b/libs/axl/axel.py index acb004e..46940da 100644 --- a/libs/axl/axel.py +++ b/libs/axl/axel.py @@ -205,6 +205,10 @@ class Event(object): handler, memoize, timeout = self.handlers[h_] if return_on_result and got_results: + + if not self.asynchronous: + self.queue.task_done() + continue if order_lock: