Remove from recent peers of peer remove
This commit is contained in:
parent
a6e67fa9c3
commit
403ec56ef8
1 changed files with 4 additions and 0 deletions
|
@ -329,6 +329,10 @@ class Peer(object):
|
||||||
self.log("Removing peer...Connection error: %s, Hash failed: %s" % (self.connection_error, self.hash_failed))
|
self.log("Removing peer...Connection error: %s, Hash failed: %s" % (self.connection_error, self.hash_failed))
|
||||||
if self.site and self.key in self.site.peers:
|
if self.site and self.key in self.site.peers:
|
||||||
del(self.site.peers[self.key])
|
del(self.site.peers[self.key])
|
||||||
|
|
||||||
|
if self.site and self in self.site.peers_recent:
|
||||||
|
self.site.peers_recent.remove(self)
|
||||||
|
|
||||||
if self.connection:
|
if self.connection:
|
||||||
self.connection.close(reason)
|
self.connection.close(reason)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue