mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 19:10:10 +00:00
Add ability to unsubscribe from a terminal session
This commit is contained in:
parent
2bf9a6d415
commit
212aa5c6e2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user