mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-11 01:43:07 +00:00
Fix connect() bug.
This commit is contained in:
parent
3ad36cc4c1
commit
de7e0f41e9
@ -613,7 +613,8 @@ else:
|
||||
sock = createAsyncSocket(address.address.getDomain(), SockType.SOCK_STREAM,
|
||||
Protocol.IPPROTO_TCP)
|
||||
if sock == asyncInvalidSocket:
|
||||
result.fail(newException(OSError, osErrorMsg(osLastError())))
|
||||
retFuture.fail(newException(OSError, osErrorMsg(osLastError())))
|
||||
return retFuture
|
||||
|
||||
proc continuation(udata: pointer) =
|
||||
var data = cast[ptr CompletionData](udata)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user