diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-10 16:32:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-10 16:32:24 +0100 |
commit | 046ca777629087eb437934ea9bb330e6b0490b8e (patch) | |
tree | 087b861ec5040c365f94c05fd63465e5758eafbc /src/microhttpd/daemon.c | |
parent | 4deb335de8af6cc943ca7fc20a69167d8845cd9b (diff) | |
download | libmicrohttpd-046ca777629087eb437934ea9bb330e6b0490b8e.tar.gz libmicrohttpd-046ca777629087eb437934ea9bb330e6b0490b8e.zip |
remove bogus check
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 9dd2f1cd..680a9b99 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2877,9 +2877,8 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
2877 | const int err = MHD_socket_get_error_ (); | 2877 | const int err = MHD_socket_get_error_ (); |
2878 | 2878 | ||
2879 | /* This could be a common occurance with multiple worker threads */ | 2879 | /* This could be a common occurance with multiple worker threads */ |
2880 | if ( (MHD_SCKT_ERR_IS_ (err, | 2880 | if (MHD_SCKT_ERR_IS_ (err, |
2881 | MHD_SCKT_EINVAL_)) && | 2881 | MHD_SCKT_EINVAL_)) |
2882 | (MHD_INVALID_SOCKET == fd) ) | ||
2883 | return MHD_NO; /* can happen during shutdown */ | 2882 | return MHD_NO; /* can happen during shutdown */ |
2884 | if (MHD_SCKT_ERR_IS_DISCNN_BEFORE_ACCEPT_(err)) | 2883 | if (MHD_SCKT_ERR_IS_DISCNN_BEFORE_ACCEPT_(err)) |
2885 | return MHD_NO; /* do not print error if client just disconnected early */ | 2884 | return MHD_NO; /* do not print error if client just disconnected early */ |