mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 23:33:15 +00:00
nbio(windows): remove assert that would trigger on cancel/remove
This commit is contained in:
@@ -1756,7 +1756,7 @@ wsa_get_result :: proc(socket: win.SOCKET, over: win.OVERLAPPED) -> (n: int, err
|
||||
_n: win.DWORD
|
||||
res := win.WSAGetOverlappedResult(socket, &over, &_n, false, &flags)
|
||||
assert(!res)
|
||||
assert(_n == 0)
|
||||
n = int(_n) // NOTE: It is possible that an amount of bytes is present when the operation was cancelled.
|
||||
err = win.System_Error(win.WSAGetLastError())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user