Esempio n. 1
0
    def run(self):
        """ Shutdowns Baboond.
        """

        # Closes the transport
        transport.close()
        self.logger.info('Bye !')
Esempio n. 2
0
    def run(self):
        """ Shutdowns Baboond.
        """

        # Closes the transport
        transport.close()
        self.logger.info('Bye !')
Esempio n. 3
0
def main():
    """ Initializes baboond.
    """

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