Skip to content

Commit 486ada7

Browse files
committed
Windows fnctl query should just fail always
1 parent 397cebb commit 486ada7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FlyingSocks/Sources/Socket+WinSock2.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ extension Socket {
107107
}
108108

109109
static func fcntl(_ fd: FileDescriptorType, _ cmd: Int32) -> Int32 {
110-
guard fd != INVALID_SOCKET else { return -1 }
111-
return 0
110+
return -1
112111
}
113112

114113
static func fcntl(_ fd: FileDescriptorType, _ cmd: Int32, _ value: Int32) -> Int32 {

0 commit comments

Comments
 (0)