Fix error on exit for peers without site
This commit is contained in:
parent
71fbcee76c
commit
a7b22e2055
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ class Peer(object):
|
|||
# On connection error
|
||||
def onConnectionError(self, reason="Unknown"):
|
||||
self.connection_error += 1
|
||||
if len(self.site.peers) > 200:
|
||||
if self.site and len(self.site.peers) > 200:
|
||||
limit = 3
|
||||
else:
|
||||
limit = 6
|
||||
|
|
Loading…
Reference in a new issue