This commit is contained in:
parent
1fc3a68205
commit
57c3b807d0
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ proc newSelector*[T](): Selector[T] =
|
||||||
result.fds = newSeq[SelectorKey[T]](maxFD)
|
result.fds = newSeq[SelectorKey[T]](maxFD)
|
||||||
result.changes = newSeqOfCap[KEvent](MAX_KQUEUE_EVENTS)
|
result.changes = newSeqOfCap[KEvent](MAX_KQUEUE_EVENTS)
|
||||||
|
|
||||||
for i in 0 ..< MAX_KQUEUE_EVENTS:
|
for i in 0 ..< maxFD:
|
||||||
result.fds[i].ident = InvalidIdent
|
result.fds[i].ident = InvalidIdent
|
||||||
|
|
||||||
result.sock = usock
|
result.sock = usock
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue