Skip to content

Commit

Permalink
Fixed SocketDescriptor.poll()
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 14, 2024
1 parent 506d0ac commit 3e64960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Socket/System/Poll.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extension SocketDescriptor {
)
return nothingOrErrno(retryOnInterrupt: retryOnInterrupt) {
system_poll(&pollFD, 1, timeout)
}.map { FileEvents(rawValue: events.rawValue) }
}.map { FileEvents(rawValue: pollFD.revents) }
}
}

Expand Down

0 comments on commit 3e64960

Please sign in to comment.