1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Correctly close the telnet connection for docker

Fix #427
This commit is contained in:
Julien Duponchelle 2016-02-23 16:54:12 +01:00
parent 38815b3eaf
commit 87eef545e1
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D

View File

@ -82,6 +82,9 @@ class AsyncioTelnetServer:
yield from self._process(network_reader, network_writer)
except ConnectionResetError:
with (yield from self._lock):
network_writer.close()
if self._reader_process == network_reader:
self._reader_process = None
# Cancel current read from this reader