From 25ad1e2f32632f66d9a0e0b6ecfcb97fa4032436 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Tue, 24 Jul 2018 16:26:56 +0300 Subject: [PATCH] Fix Unix compilation problems. --- asyncdispatch2/transports/stream.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asyncdispatch2/transports/stream.nim b/asyncdispatch2/transports/stream.nim index 99dea6e..1889db2 100644 --- a/asyncdispatch2/transports/stream.nim +++ b/asyncdispatch2/transports/stream.nim @@ -627,7 +627,8 @@ else: transp.state.incl(ReadPaused) cdata.fd.removeReader() if not isNil(transp.reader): - transp.finishReader() + transp.reader.complete() + transp.reader = nil break proc newStreamSocketTransport(sock: AsyncFD, bufsize: int,