mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-12 11:16:52 +00:00
Fix #6 behavior.
This commit is contained in:
parent
3160202ffe
commit
190a16da3b
@ -74,8 +74,6 @@ when defined(windows):
|
||||
while len(transp.queue) > 0:
|
||||
if WritePending in transp.state:
|
||||
## Continuation
|
||||
if WriteClosed in transp.state:
|
||||
break
|
||||
transp.state.excl(WritePending)
|
||||
let err = transp.wovl.data.errCode
|
||||
let vector = transp.queue.popFirst()
|
||||
@ -133,8 +131,6 @@ when defined(windows):
|
||||
while true:
|
||||
if ReadPending in transp.state:
|
||||
## Continuation
|
||||
if ReadClosed in transp.state:
|
||||
break
|
||||
transp.state.excl(ReadPending)
|
||||
let err = transp.rovl.data.errCode
|
||||
if err == OSErrorCode(-1):
|
||||
|
Loading…
x
Reference in New Issue
Block a user