mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-17 21:23:18 +00:00
Have shell sessions not autoreconnect
Unlike consoles, where the underlying concept is a real persistent thing that needs some care to reattach to watch, a shell session should die when it is lost, as a new one would have to be created anyway. Modify the disconnect behavior for a shell session to set closed and notify the receivers. It should also reap dependent watching objects in a future change.
This commit is contained in:
parent
00feca7e5b
commit
849193cf98
@ -34,6 +34,10 @@ class _ShellHandler(consoleserver.ConsoleHandler):
|
||||
# suppress logging through proving a stub 'log' function
|
||||
return
|
||||
|
||||
def _got_disconnected(self):
|
||||
self.connectstate = 'closed'
|
||||
self._send_rcpts({'connectstate': self.connectstate})
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user