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

Fix hang on ctrl-e,c,p,o

Leave the function to
consume termdata if data
is available.
This commit is contained in:
Jarrod Johnson 2021-05-25 14:26:49 -04:00
parent 9bdef5bbb9
commit a7e7e647f3

View File

@ -722,7 +722,6 @@ def conserver_command(filehandle, localcommand):
if localcommand[1] == 'o': # off
sys.stdout.write("powering off...")
sys.stdout.flush()
consume_termdata(session.connection)
run_inline_command('/power/state', 'off', 'complete]')
elif localcommand[1] == 's': # shutdown
sys.stdout.write("shutting down...")