From 190a16da3ba6c6802826a3888c04094f601962a7 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Wed, 7 Nov 2018 22:29:49 +0200 Subject: [PATCH] Fix #6 behavior. --- asyncdispatch2/transports/datagram.nim | 4 ---- 1 file changed, 4 deletions(-) diff --git a/asyncdispatch2/transports/datagram.nim b/asyncdispatch2/transports/datagram.nim index 5180ebfb..9d6bd18c 100644 --- a/asyncdispatch2/transports/datagram.nim +++ b/asyncdispatch2/transports/datagram.nim @@ -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):