From 29f1a0f46b840cff69d1e87d5fa2be07fda65057 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sun, 12 Apr 2020 23:35:58 +0200 Subject: [PATCH] Properly reset live_session on a SEL NUL --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index ca58243..dcca699 100644 --- a/server.py +++ b/server.py @@ -368,6 +368,7 @@ async def telnet_server( if sid == "NUL": if live_session is not None: await live_session.deactivate() + live_session = None print("OKAY") writer.write("OKAY\r\n".encode("utf-8")) else: