Do not quit when stdin hangs up

This commit is contained in:
Emery Hemingway 2022-03-16 15:51:47 -05:00
parent 405f3dd5c2
commit 1171b238ec
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ proc connectStdio*(ds: Ref; turn: var Turn) =
retract(turn, observer)
close(asyncStdin)
proc recvCb(pktFut: Future[string]) {.gcsafe.} =
if pktFut.failed: quit()
if pktFut.failed: discard
else:
let buf = pktFut.read
if buf.len == 0: