mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
fixes #11124
This commit is contained in:
@@ -500,7 +500,7 @@ proc selectInto*[T](s: Selector[T], timeout: int,
|
||||
|
||||
if (kevent.flags and EV_ERROR) != 0:
|
||||
rkey.events = {Event.Error}
|
||||
rkey.errorCode = kevent.data.OSErrorCode
|
||||
rkey.errorCode = OSErrorCode(kevent.data)
|
||||
|
||||
case kevent.filter:
|
||||
of EVFILT_READ:
|
||||
@@ -576,7 +576,7 @@ proc selectInto*[T](s: Selector[T], timeout: int,
|
||||
# This assumes we are dealing with sockets.
|
||||
# TODO: For future-proofing it might be a good idea to give the
|
||||
# user access to the raw `kevent`.
|
||||
rkey.errorCode = ECONNRESET.OSErrorCode
|
||||
rkey.errorCode = OSErrorCode(ECONNRESET)
|
||||
rkey.events.incl(Event.Error)
|
||||
|
||||
results[k] = rkey
|
||||
|
||||
Reference in New Issue
Block a user