diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 280d7789..2b8eac5f 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -2445,7 +2445,8 @@ close_all_connections (struct MHD_Daemon *daemon) | |||
2445 | abort(); | 2445 | abort(); |
2446 | } | 2446 | } |
2447 | for (pos = daemon->connections_head; pos != NULL; pos = pos->next) | 2447 | for (pos = daemon->connections_head; pos != NULL; pos = pos->next) |
2448 | SHUTDOWN (pos->socket_fd, SHUT_RDWR); | 2448 | SHUTDOWN (pos->socket_fd, |
2449 | (pos->read_closed == MHD_YES) ? SHUT_WR : SHUT_RDWR); | ||
2449 | if (0 != pthread_mutex_unlock(&daemon->cleanup_connection_mutex)) | 2450 | if (0 != pthread_mutex_unlock(&daemon->cleanup_connection_mutex)) |
2450 | { | 2451 | { |
2451 | #if HAVE_MESSAGES | 2452 | #if HAVE_MESSAGES |