Fix Unix compilation problems.

This commit is contained in:
cheatfate 2018-07-24 16:26:56 +03:00
parent f1cf6d36fc
commit 25ad1e2f32
1 changed files with 2 additions and 1 deletions

View File

@ -627,7 +627,8 @@ else:
transp.state.incl(ReadPaused) transp.state.incl(ReadPaused)
cdata.fd.removeReader() cdata.fd.removeReader()
if not isNil(transp.reader): if not isNil(transp.reader):
transp.finishReader() transp.reader.complete()
transp.reader = nil
break break
proc newStreamSocketTransport(sock: AsyncFD, bufsize: int, proc newStreamSocketTransport(sock: AsyncFD, bufsize: int,