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:
parent
9bdef5bbb9
commit
a7e7e647f3
@ -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...")
|
||||
|
Loading…
Reference in New Issue
Block a user