def run(self): """ Shutdowns Baboond. """ # Closes the transport transport.close() self.logger.info('Bye !')
def main(): """ Initializes baboond. """ try: while not transport.disconnected.is_set(): transport.disconnected.wait(5) except KeyboardInterrupt: dispatcher.close() transport.close()