Skip to content

Commit 4d6c9b4

Browse files
committed
prefer completion.handle() instead of v.socket
1 parent a3eec8f commit 4d6c9b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/iocp.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ pub const Loop = struct {
547547
.connect => |*v| action: {
548548
const as_socket = asSocket(v.socket);
549549
// Associate our socket with loop's completion port.
550-
self.associate_fd(v.socket) catch unreachable;
550+
self.associate_fd(completion.handle().?) catch unreachable;
551551

552552
// ConnectEx requires socket to be initially bound.
553553
// https://github.com/tigerbeetle/tigerbeetle/blob/main/src/io/windows.zig#L467

0 commit comments

Comments
 (0)