2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 12:41:39 +00:00

Close shell interface on remote disconnect

This commit is contained in:
Jarrod Johnson 2016-03-13 18:48:58 -04:00
parent 0e42e83c50
commit 7ff20e3e39

View File

@ -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