do not freeze when a call is made with no backends

This commit is contained in:
Romain Bignon 2010-05-01 15:48:42 +02:00
commit b4bcfd7593

View file

@ -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: