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
|
# On connection error
|
||||||
def onConnectionError(self, reason="Unknown"):
|
def onConnectionError(self, reason="Unknown"):
|
||||||
self.connection_error += 1
|
self.connection_error += 1
|
||||||
if len(self.site.peers) > 200:
|
if self.site and len(self.site.peers) > 200:
|
||||||
limit = 3
|
limit = 3
|
||||||
else:
|
else:
|
||||||
limit = 6
|
limit = 6
|
||||||
|
|
Loading…
Reference in a new issue