Commit bef36122 authored by Alexandre's avatar Alexandre
Browse files

Update connection state on end

parent 55496c6b
......@@ -224,6 +224,7 @@ class ConnectionDOT(Connection):
def end(self):
self.session.shutdown()
self.session.close()
self.state = 'CLOSED'
def send_data(self, data, dump=False):
if dump:
......@@ -411,6 +412,7 @@ class ConnectionDOH(Connection):
else:
self.remove_handles()
self.multi.close()
self.state = 'CLOSED'
def remove_handles(self):
n, handle_success, handle_fail = self.multi.info_read()
......
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