fixed peer ping and addr threadlets not exiting when connection lost
authorForrest Voight <forrest.voight@gmail.com>
Thu, 15 Dec 2011 21:35:39 +0000 (16:35 -0500)
committerForrest Voight <forrest.voight@gmail.com>
Sat, 17 Dec 2011 10:16:41 +0000 (05:16 -0500)
p2pool/p2p.py

index e642538..0d73447 100644 (file)
@@ -205,6 +205,7 @@ class Protocol(bitcoin_p2p.BaseProtocol):
     def connectionLost(self, reason):
         if self.connected2:
             self.node.lost_conn(self)
+            self.connected2 = False
 
 class ServerFactory(protocol.ServerFactory):
     def __init__(self, node):