Increment connections peer number on findConnection result
This commit is contained in:
parent
36e969ed1f
commit
eac475d13f
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ class Peer(object):
|
|||
return self.connection
|
||||
else: # Try to find from other sites connections
|
||||
self.connection = self.site.connection_server.getConnection(self.ip, self.port, create=False, site=self.site)
|
||||
if self.connection:
|
||||
self.connection.sites += 1
|
||||
return self.connection
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Reference in a new issue