From 0a63aa05bd6d0e5a718f6d46794fc1c817403ce7 Mon Sep 17 00:00:00 2001 From: laytan Date: Mon, 19 Jan 2026 19:11:06 +0100 Subject: [PATCH] nbio(windows): remove assert that would trigger on cancel/remove --- core/nbio/impl_windows.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/nbio/impl_windows.odin b/core/nbio/impl_windows.odin index d9ac7f379..f75193fe4 100644 --- a/core/nbio/impl_windows.odin +++ b/core/nbio/impl_windows.odin @@ -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()) }