mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Merge pull request #352 from ranzhengyuan/some-idea
I think that when the socket invalid, the return value should be -1.
This commit is contained in:
commit
781a1dc25e
1 file changed
+1
-1
+1
-1
@@ -769,7 +769,7 @@ int ns_server_poll(struct ns_server *server, int milli) {
|
||||
time_t current_time = time(NULL);
|
||||
|
||||
if (server->listening_sock == INVALID_SOCKET &&
|
||||
server->active_connections == NULL) return 0;
|
||||
server->active_connections == NULL) return -1;
|
||||
|
||||
FD_ZERO(&read_set);
|
||||
FD_ZERO(&write_set);
|
||||
|
||||
Reference in new issue
Block a user