mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Close shell interface on remote disconnect
This commit is contained in:
parent
0e42e83c50
commit
7ff20e3e39
@ -87,11 +87,13 @@ laststate = {}
|
||||
def updatestatus(stateinfo={}):
|
||||
status = consolename
|
||||
info = []
|
||||
for statekey in stateinfo.iterkeys():
|
||||
for statekey in stateinfo:
|
||||
laststate[statekey] = stateinfo[statekey]
|
||||
if ('connectstate' in laststate and
|
||||
laststate['connectstate'] != 'connected'):
|
||||
info.append(laststate['connectstate'])
|
||||
if laststate['connectstate'] == 'closed':
|
||||
quitconfetty(fullexit=consoleonly)
|
||||
if 'error' in laststate:
|
||||
info.append(laststate['error'])
|
||||
# error will be repeated if relevant
|
||||
|
Loading…
Reference in New Issue
Block a user