Don't try to SEL a nonexistent session
This commit is contained in:
parent
a073d9a5d4
commit
555c7e90f4
1 changed files with 11 additions and 8 deletions
|
@ -370,6 +370,9 @@ async def telnet_server(
|
|||
writer.write("OKAY\r\n".encode("utf-8"))
|
||||
else:
|
||||
writer.write("WONT\r\n".encode("utf-8"))
|
||||
else:
|
||||
if sid not in active_sessions:
|
||||
writer.write("WONT\r\n".encode("utf-8"))
|
||||
else:
|
||||
session = active_sessions[sid]
|
||||
if session is None:
|
||||
|
|
Loading…
Reference in a new issue