Clean exit for client on EOF/interrupt

This commit is contained in:
Kovid Goyal
2017-05-26 12:36:36 +05:30
parent a79bb3add2
commit fafd710ce3

View File

@@ -142,4 +142,7 @@ def replay(raw):
def main(path): def main(path):
raw = open(path).read() raw = open(path).read()
replay(raw) replay(raw)
input() try:
input()
except (EOFError, KeyboardInterrupt):
pass