do not freeze when a call is made with no backends
This commit is contained in:
parent
fbf639993b
commit
b4bcfd7593
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ class BackendsCall(object):
|
|||
for b in backends:
|
||||
debug('New timer for %s' % b)
|
||||
self.threads.append(Timer(0, self._caller, (b, function, args, kwargs)).start())
|
||||
|
||||
if not backends:
|
||||
self.finish_event.set()
|
||||
|
||||
def _store_error(self, b, e):
|
||||
with self.mutex:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue