Skip to content

Commit 40f8f68

Browse files
committed
make Completion.handle function be aware of connect
1 parent 3039084 commit 40f8f68

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
@@ -984,7 +984,7 @@ pub const Completion = struct {
984984
/// Returns a handle for the current operation if it makes sense.
985985
fn handle(self: Completion) ?windows.HANDLE {
986986
return switch (self.op) {
987-
inline .accept => |*v| v.socket,
987+
inline .accept, .connect => |*v| v.socket,
988988
inline .read, .pread, .write, .pwrite, .recv, .send, .recvfrom, .sendto => |*v| v.fd,
989989
else => null,
990990
};

0 commit comments

Comments
 (0)