Clear queu tasks. fix #997
This commit is contained in:
1 parent
2215c000b7
commit
51f9b5c673
1 file changed
+4
@@ -205,6 +205,10 @@ class Event(object):
|
|||||||
handler, memoize, timeout = self.handlers[h_]
|
handler, memoize, timeout = self.handlers[h_]
|
||||||
|
|
||||||
if return_on_result and got_results:
|
if return_on_result and got_results:
|
||||||
|
|
||||||
|
if not self.asynchronous:
|
||||||
|
self.queue.task_done()
|
||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if order_lock:
|
if order_lock:
|
||||||
|
|||||||
Reference in new issue
Block a user