mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-25 20:50:28 +00:00
Add ability to unsubscribe from a terminal session
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user