Commit 5af23251 authored by dkirov's avatar dkirov

we can disconnect, before plugin

parent 6c03358b
......@@ -362,7 +362,8 @@ class P2PConnection(IdleObject, PlugIn):
pass
self.fd = -1
self.state = -1
self._owner.on_disconnect()
if self._owner:
self._owner.on_disconnect()
def _do_send(self):
if not self.sendbuff:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment