diff options
Diffstat (limited to 'Modules/socketmodule.c')
| -rw-r--r-- | Modules/socketmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f7fe218..f8d39f6 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -652,7 +652,7 @@ internal_select(PySocketSockObject *s, int writing, _PyTime_t interval, assert(!(connect && !writing)); /* Guard against closed socket */ - if (s->sock_fd < 0) + if (s->sock_fd == INVALID_SOCKET) return 0; /* Prefer poll, if available, since you can poll() any fd |
