def readable(self): """ Avoid starting a new tic if shutdown started. """ if self.running: OriginalClockServer.readable(self) return False
def __init__(self, *args, **kw): self.shutdown_method = kw.pop('shutdown_method') OriginalClockServer.__init__(self, *args, **kw) if self.shutdown_method is None: self.log_info('ClockServer shutdown_method is not set in configuration'\ 'file. Unclean shutdown can happen.', type='warning')