def stop(self):
    logging.info('Stopping reactor...')
    if self._has_outstanding_call_later():
        self.__called_later.cancel()
        self.__called_later = None
    reactor.stop()
    logging.info('Reactor stopped.')
def stop(self):
    logging.info('Stopping reactor...')
    if self._has_outstanding_call_later():
        self.__called_later.cancel()
        self.__called_later = None
    reactor.stop()
    logging.info('Reactor stopped.')