2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Add ability to unsubscribe from a terminal session

This commit is contained in:
Jarrod Johnson 2022-04-13 16:44:01 -04:00
parent 2bf9a6d415
commit 212aa5c6e2

View File

@ -492,7 +492,11 @@ def wsock_handler(ws):
datacallback=datacallback,
width=width, height=height)
myconsoles[clientsessid] = consession
elif action == 'stop':
sessid = '{0}'.format(msg.get('sessid', None))
if sessid in myconsoles:
myconsoles[sessid].destroy()
del myconsoles[sessid]
else:
print(repr(clientmsg))
finally: