Wait before processing so the component can initialize

darcs-hash:20070621203024-86b55-b0d7598d7f5042945d8c81b1e1f541600cf676a0.gz
This commit is contained in:
David Rousselie
2007-06-21 22:30:24 +02:00
parent c4086e135e
commit 4bf2efa6eb

View File

@@ -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...")