Fix for race condition in *nix connect().
This commit is contained in:
parent
9160dcdbba
commit
a8a1138b8b
|
@ -1076,6 +1076,7 @@ else:
|
||||||
return retFuture
|
return retFuture
|
||||||
|
|
||||||
proc continuation(udata: pointer) =
|
proc continuation(udata: pointer) =
|
||||||
|
if not retFuture.finished:
|
||||||
var data = cast[ptr CompletionData](udata)
|
var data = cast[ptr CompletionData](udata)
|
||||||
var err = 0
|
var err = 0
|
||||||
let fd = data.fd
|
let fd = data.fd
|
||||||
|
|
Loading…
Reference in New Issue