Commit 2b1a9219 authored by Vincent Pelletier's avatar Vincent Pelletier

Make Dispatcher.pending more robust.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2027 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a01d9c25
......@@ -87,5 +87,5 @@ class Dispatcher:
@giant_lock
@profiler_decorator
def pending(self, queue):
return not queue.empty() or self.queue_dict[id(queue)] > 0
return not queue.empty() or self.queue_dict.get(id(queue), 0) > 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment