예제 #1
0
    def run(self):
        """ Shutdowns Baboond.
        """

        # Closes the transport
        transport.close()
        self.logger.info('Bye !')
예제 #2
0
파일: task.py 프로젝트: pierrezurek/baboon
    def run(self):
        """ Shutdowns Baboond.
        """

        # Closes the transport
        transport.close()
        self.logger.info('Bye !')
예제 #3
0
파일: main.py 프로젝트: rhunter/baboon
def main():
    """ Initializes baboond.
    """

    try:
        while not transport.disconnected.is_set():
            transport.disconnected.wait(5)
    except KeyboardInterrupt:
        dispatcher.close()
        transport.close()