diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index c82278cb..7c153304 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -1830,7 +1830,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
1830 | break; | 1830 | break; |
1831 | } | 1831 | } |
1832 | timeout = connection->daemon->connection_timeout; | 1832 | timeout = connection->daemon->connection_timeout; |
1833 | if ((timeout != 0) && (time (NULL) - timeout > connection->last_activity)) | 1833 | if ( (connection->socket_fd != -1) && |
1834 | (timeout != 0) && (time (NULL) - timeout > connection->last_activity)) | ||
1834 | { | 1835 | { |
1835 | connection_close_error (connection); | 1836 | connection_close_error (connection); |
1836 | return MHD_NO; | 1837 | return MHD_NO; |