def stopConnectionRetrying(self):

        self.log.info('Stopped automatic connection retrying.')
        if self.reconnectTimer and self.reconnectTimer.active():
            self.reconnectTimer.cancel()
            self.reconnectTimer = None

        self.connectionRetry = False
This will stop the factory from reconnecting
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/factory.py/SMPPClientFactory.stopConnectionRetrying