Browse Source

Fix missing self

master 1.0.3
Neil Booth 8 years ago
parent
commit
79bce5335e
  1. 2
      server/peers.py

2
server/peers.py

@ -177,7 +177,7 @@ class PeerSession(JSONSession):
def close_if_done(self):
if not self.has_pending_requests():
if self.bad:
peer.mark_bad()
self.peer.mark_bad()
self.peer_mgr.set_connection_status(self.peer, not self.bad)
if self.peer.is_tor:
how = 'via {} over Tor'.format(self.kind)

Loading…
Cancel
Save