Corrected prunesocketset and pruneprocessset
fd sets passed to select() were pruning ready FDs rather than pruning UN-ready FDs.
This commit is contained in:
parent
73c6efdf66
commit
5d8d1ed8bc
5 changed files with 6 additions and 6 deletions
|
|
@ -800,7 +800,7 @@ elif not defined(useNimRtl):
|
|||
var i = 0
|
||||
var L = s.len
|
||||
while i < L:
|
||||
if FD_ISSET(cint(s[i].outHandle), fd) != 0'i32:
|
||||
if FD_ISSET(cint(s[i].outHandle), fd) == 0'i32:
|
||||
s[i] = s[L-1]
|
||||
dec(L)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue