Fixed reconnection time prolonging over multiple disconnections
This commit is contained in:
parent
2739bf0393
commit
0eeb40db7f
@ -21,6 +21,7 @@ class SyncClientFactory(ClientFactory):
|
|||||||
self.reconnecting = False
|
self.reconnecting = False
|
||||||
|
|
||||||
def buildProtocol(self, addr):
|
def buildProtocol(self, addr):
|
||||||
|
self._timesTried = 0
|
||||||
return SyncClientProtocol(self._client)
|
return SyncClientProtocol(self._client)
|
||||||
|
|
||||||
def startedConnecting(self, connector):
|
def startedConnecting(self, connector):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user