diff options
Diffstat (limited to 'src/daemon/connection_https.c')
-rw-r--r-- | src/daemon/connection_https.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/connection_https.c b/src/daemon/connection_https.c index d193fef6..78797aa4 100644 --- a/src/daemon/connection_https.c +++ b/src/daemon/connection_https.c | |||
@@ -204,7 +204,8 @@ MHD_tls_connection_handle_idle (struct MHD_Connection *connection) | |||
204 | return MHD_YES; | 204 | return MHD_YES; |
205 | /* close connection if necessary */ | 205 | /* close connection if necessary */ |
206 | case MHD_CONNECTION_CLOSED: | 206 | case MHD_CONNECTION_CLOSED: |
207 | MHD_tls_connection_close (connection); | 207 | if (connection->socket_fd != -1) |
208 | MHD_tls_connection_close (connection); | ||
208 | return MHD_NO; | 209 | return MHD_NO; |
209 | case MHD_TLS_HANDSHAKE_FAILED: | 210 | case MHD_TLS_HANDSHAKE_FAILED: |
210 | MHD_tls_connection_close_err (connection, | 211 | MHD_tls_connection_close_err (connection, |