From 7ff20e3e39748de129110b335922b1f0b960b15a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sun, 13 Mar 2016 18:48:58 -0400 Subject: [PATCH] Close shell interface on remote disconnect --- confluent_client/bin/confetty | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 76c70b56..be9bbf3d 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -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