mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-03-03 20:30:39 +00:00
fix windows
This commit is contained in:
parent
a034f11b8b
commit
cc881162fe
@ -446,8 +446,8 @@ when defined(windows):
|
||||
return disp.ioPort
|
||||
|
||||
proc closeIoHandler(disp: PDispatcher) {.raises: [Defect, OSError].} =
|
||||
if not disp.ioPort.closeHandle():
|
||||
raiseOSError(osLastError)
|
||||
if disp.ioPort.closeHandle() == 0:
|
||||
raiseOSError(osLastError())
|
||||
|
||||
proc register*(fd: AsyncFD) {.raises: [Defect, CatchableError].} =
|
||||
## Register file descriptor ``fd`` in thread's dispatcher.
|
||||
|
Loading…
x
Reference in New Issue
Block a user