Wait before processing so the component can initialize
darcs-hash:20070621203024-86b55-b0d7598d7f5042945d8c81b1e1f541600cf676a0.gz
This commit is contained in:
@@ -174,10 +174,10 @@ class JCLComponent(Component, object):
|
|||||||
while (self.running and self.stream
|
while (self.running and self.stream
|
||||||
and not self.stream.eof
|
and not self.stream.eof
|
||||||
and self.stream.socket is not None):
|
and self.stream.socket is not None):
|
||||||
|
self.wait_event.wait(self.time_unit)
|
||||||
self.handle_tick()
|
self.handle_tick()
|
||||||
self.__logger.debug("Resetting alarm signal")
|
self.__logger.debug("Resetting alarm signal")
|
||||||
##time.sleep(self.time_unit)
|
##time.sleep(self.time_unit)
|
||||||
self.wait_event.wait(self.time_unit)
|
|
||||||
except Exception, exception:
|
except Exception, exception:
|
||||||
self.queue.put(exception)
|
self.queue.put(exception)
|
||||||
self.__logger.info("Timer thread terminated...")
|
self.__logger.info("Timer thread terminated...")
|
||||||
|
|||||||
Reference in New Issue
Block a user