Commit 5b9c1123 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Ensure to not call connectionClosed() twice.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1698 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d50a7f48
...@@ -305,6 +305,7 @@ class Connection(BaseConnection): ...@@ -305,6 +305,7 @@ class Connection(BaseConnection):
return self.connector is not None and self.write_buf return self.connector is not None and self.write_buf
def _closure(self): def _closure(self):
assert self.connector is not None, self.whoSetConnector()
self.close() self.close()
self.handler.connectionClosed(self) self.handler.connectionClosed(self)
......
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