git://git.novaco.in
/
p2pool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
don't connect to old peers. should reduce bandwidth used
[p2pool.git]
/
p2pool
/
util
/
p2protocol.py
diff --git
a/p2pool/util/p2protocol.py
b/p2pool/util/p2protocol.py
index
979a10f
..
e3f83a2
100644
(file)
--- a/
p2pool/util/p2protocol.py
+++ b/
p2pool/util/p2protocol.py
@@
-76,7
+76,8
@@
class Protocol(protocol.Protocol):
print 'no handler for', repr(command)
return
- handler(**payload2)
+ if getattr(self, 'connected', True) and not getattr(self, 'disconnecting', False):
+ handler(**payload2)
def badPeerHappened(self):
self.transport.loseConnection()