Clean exit for client on EOF/interrupt
This commit is contained in:
parent
a79bb3add2
commit
fafd710ce3
@ -142,4 +142,7 @@ def replay(raw):
|
||||
def main(path):
|
||||
raw = open(path).read()
|
||||
replay(raw)
|
||||
input()
|
||||
try:
|
||||
input()
|
||||
except (EOFError, KeyboardInterrupt):
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user