diff options
Diffstat (limited to 'lib/pure/sockets.nim')
-rwxr-xr-x | lib/pure/sockets.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index 958b3483b..f18cf2ba8 100755 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -406,9 +406,11 @@ proc connectAsync*(socket: TSocket, name: string, port = TPort(0), var err = WSAGetLastError() # Windows EINTR doesn't behave same as POSIX. if err == WSAEWOULDBLOCK: + freeaddrinfo(aiList) return else: if errno == EINTR or errno == EINPROGRESS: + freeaddrinfo(aiList) return it = it.ai_next |