mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-24 12:11:52 +00:00
Fix source of abnormal console exit
If using ctrl-e, c, then a delay while there is console output to do, console would crash. Fix by catching the flush problem and ignoring it.
This commit is contained in:
parent
9cc5b5f98c
commit
095a831c0b
@ -958,7 +958,13 @@ def main():
|
||||
# don't bother churning if minute does not change
|
||||
laststate['showtime'] = now
|
||||
updatestatus()
|
||||
sys.stdout.flush()
|
||||
try:
|
||||
sys.stdout.flush()
|
||||
except Exception:
|
||||
# EWOULDBLOCK causes this to raise, ignore
|
||||
# this scenario comfortable that it
|
||||
# will come out soon enough
|
||||
pass
|
||||
else:
|
||||
deadline = 5
|
||||
connected = False
|
||||
|
Loading…
Reference in New Issue
Block a user