mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-03-03 20:30:39 +00:00
Fix windows & macos
This commit is contained in:
parent
1c7ef8201e
commit
77cd194075
@ -417,7 +417,7 @@ when defined(windows):
|
||||
## (Unix) for the specified dispatcher.
|
||||
return disp.ioPort
|
||||
|
||||
proc closeIoHandler(disp: PDispatcher): Handle {.raises: [Defect, OSError].} =
|
||||
proc closeIoHandler(disp: PDispatcher) {.raises: [Defect, OSError].} =
|
||||
disp.ioPort.closeHandle()
|
||||
|
||||
proc newDispatcher*(): PDispatcher {.raises: [Defect, CatchableError].} =
|
||||
|
@ -129,7 +129,7 @@ proc close*[T](s: Selector[T]) =
|
||||
deallocSharedArray(s.fds)
|
||||
deallocShared(cast[pointer](s))
|
||||
if res1 != 0 or res2 != 0:
|
||||
raiseIOSelectorsError(osLastError())
|
||||
raiseOSError(osLastError())
|
||||
|
||||
proc newSelectEvent*(): SelectEvent =
|
||||
var fds: array[2, cint]
|
||||
|
Loading…
x
Reference in New Issue
Block a user