From 4bf2efa6ebe35c66049926654f0281a30b66d9d0 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Thu, 21 Jun 2007 22:30:24 +0200 Subject: [PATCH] Wait before processing so the component can initialize darcs-hash:20070621203024-86b55-b0d7598d7f5042945d8c81b1e1f541600cf676a0.gz --- src/jcl/jabber/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jcl/jabber/component.py b/src/jcl/jabber/component.py index 2443a8c..5d7bbec 100644 --- a/src/jcl/jabber/component.py +++ b/src/jcl/jabber/component.py @@ -174,10 +174,10 @@ class JCLComponent(Component, object): while (self.running and self.stream and not self.stream.eof and self.stream.socket is not None): + self.wait_event.wait(self.time_unit) self.handle_tick() self.__logger.debug("Resetting alarm signal") ##time.sleep(self.time_unit) - self.wait_event.wait(self.time_unit) except Exception, exception: self.queue.put(exception) self.__logger.info("Timer thread terminated...")