Remove unnecessary change to ioselectors_kqueue.nim found by @cheatfate.
This commit is contained in:
parent
4e6f2b5313
commit
233455a685
1 changed files with 2 additions and 2 deletions
|
|
@ -375,8 +375,8 @@ proc unregister*[T](s: Selector[T], fd: int|SocketHandle) =
|
|||
"Descriptor [" & $fdi & "] is not registered in the queue!")
|
||||
|
||||
if pkey.events != {}:
|
||||
if pkey.events * {Event.Read, Event.Write, Event.User} != {}:
|
||||
if Event.Read in pkey.events or Event.User in pkey.events:
|
||||
if pkey.events * {Event.Read, Event.Write} != {}:
|
||||
if Event.Read in pkey.events:
|
||||
modifyKQueue(s, uint(fdi), EVFILT_READ, EV_DELETE, 0, 0, nil)
|
||||
dec(s.count)
|
||||
if Event.Write in pkey.events:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue