Remotely close telnet console. Ref #2330

This commit is contained in:
ziajka committed 2017-11-20 15:28:07 +01:00
1 parent 96a0b52cf8
commit 860ca3b35d
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -212,7 +212,8 @@ class AsyncioTelnetServer:
@asyncio.coroutine
def close(self):
for writer, connection in self._connections.items():
connection.close()
writer.write_eof()
yield from writer.drain()
@asyncio.coroutine
def client_connected_hook(self):