From b4bcfd75939ecb5c7afc2bdaa8875ee68e379f58 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 1 May 2010 15:48:42 +0200 Subject: [PATCH] do not freeze when a call is made with no backends --- weboob/bcall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/bcall.py b/weboob/bcall.py index ff98e734..d468ab9a 100644 --- a/weboob/bcall.py +++ b/weboob/bcall.py @@ -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: