Do not quit when stdin hangs up
This commit is contained in:
parent
405f3dd5c2
commit
1171b238ec
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue