2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 02:52:07 +00:00

Cleaner exit on remote termination

This commit is contained in:
Jarrod Johnson 2013-10-12 15:04:26 -04:00
parent 52913a1d55
commit 1c2341e1eb

View File

@ -143,10 +143,11 @@ while not doexit:
sys.stdout.flush()
else:
doexit = True
sys.stdout.write("\r\n[remote disconnected]\r\n")
break
else:
input = fh.read()
input = check_escape_seq(input, fh)
if input:
server.sendall(input)
exit()