diff options
author | Araq <rumpf_a@web.de> | 2011-08-29 01:14:26 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-29 01:14:26 +0200 |
commit | 4839800c228acfe8a5867cb65aa39f6986007a02 (patch) | |
tree | a3d11d630f0b1adcee20195d6fd0c0b0cfd5a258 /lib/pure | |
parent | 51126779048e5a97f210b4ec31a0db118637fb3b (diff) | |
download | Nim-4839800c228acfe8a5867cb65aa39f6986007a02.tar.gz |
new actors implementation for nimrod; compiler's generics still not up for the task though
Diffstat (limited to 'lib/pure')
-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 |