diff --git a/pyapns/server.py b/pyapns/server.py index 3889a7c..4348e95 100644 --- a/pyapns/server.py +++ b/pyapns/server.py @@ -208,6 +208,7 @@ def write(self, notifications): if conn_time > MAX_CONNECTION_TIME: log.msg('APNSService write (disconnecting based on max connection time)') self.factory.clientProtocol.transport.loseConnection() + self.factory.stopTrying() self.factory = None if not self.factory: