diff options
Diffstat (limited to 'src/daemon/connection.c')
-rw-r--r-- | src/daemon/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/connection.c b/src/daemon/connection.c index a56106a4..390bc461 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c | |||
@@ -2223,13 +2223,13 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) | |||
2223 | } | 2223 | } |
2224 | timeout = connection->daemon->connection_timeout; | 2224 | timeout = connection->daemon->connection_timeout; |
2225 | if ((connection->socket_fd != -1) && | 2225 | if ((connection->socket_fd != -1) && |
2226 | (timeout != 0) && (time (NULL) - timeout > connection->last_activity)) | 2226 | (timeout != 0) && |
2227 | (timeout > (time (NULL) - con->last_activity)) ) | ||
2227 | { | 2228 | { |
2228 | MHD_connection_close (connection, MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); | 2229 | MHD_connection_close (connection, MHD_REQUEST_TERMINATED_TIMEOUT_REACHED); |
2229 | return MHD_NO; | 2230 | return MHD_NO; |
2230 | } | 2231 | } |
2231 | return MHD_YES; | 2232 | return MHD_YES; |
2232 | |||
2233 | } | 2233 | } |
2234 | 2234 | ||
2235 | void | 2235 | void |