Skip to content

Commit

Permalink
Fix ret < 0 && ret == 10038L is never possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan van der Merwe committed Sep 12, 2024
1 parent 126082a commit 5c6c74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conn_poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ int conn_poll_run(conn_registry_t *registry) {
JLOG_VERBOSE("Leaving poll");
if (ret < 0) {
#ifdef _WIN32
if (ret == WSAENOTSOCK)
if (sockerrno == WSAENOTSOCK)
continue; // prepare again as the fd has been removed
#endif
if (sockerrno == SEINTR || sockerrno == SEAGAIN) {
Expand Down

0 comments on commit 5c6c74b

Please sign in to comment.