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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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