Fix closed sockets not being recreated as they should

See http://stackoverflow.com/a/15958099
This commit is contained in:
Lonami Exo
2017-05-20 11:34:23 +02:00
parent 468033fa7e
commit 6550d83d42
2 changed files with 19 additions and 16 deletions

View File

@@ -64,8 +64,7 @@ class TcpTransport:
return seq, body
def close(self):
if self.tcp_client.connected:
self.tcp_client.close()
self.tcp_client.close()
def cancel_receive(self):
"""Cancels (stops) trying to receive from the