diff options
Diffstat (limited to 'src/lib/action_suspend.c')
-rw-r--r-- | src/lib/action_suspend.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/action_suspend.c b/src/lib/action_suspend.c index 8327992d..b54fe419 100644 --- a/src/lib/action_suspend.c +++ b/src/lib/action_suspend.c | |||
@@ -31,11 +31,13 @@ | |||
31 | * | 31 | * |
32 | * @param cls NULL | 32 | * @param cls NULL |
33 | * @param request the request to apply the action to | 33 | * @param request the request to apply the action to |
34 | * @return #MHD_SC_OK on success | ||
34 | */ | 35 | */ |
35 | static void | 36 | static enum MHD_StatusCode |
36 | suspend_action (void *cls, | 37 | suspend_action (void *cls, |
37 | struct MHD_Request *request) | 38 | struct MHD_Request *request) |
38 | { | 39 | { |
40 | struct MHD_Connection *connection = request->connection; | ||
39 | struct MHD_Daemon *daemon = connection->daemon; | 41 | struct MHD_Daemon *daemon = connection->daemon; |
40 | 42 | ||
41 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 43 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |
@@ -44,7 +46,7 @@ suspend_action (void *cls, | |||
44 | /* suspending again while we didn't even complete resuming yet */ | 46 | /* suspending again while we didn't even complete resuming yet */ |
45 | connection->resuming = false; | 47 | connection->resuming = false; |
46 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | 48 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); |
47 | return; | 49 | return MHD_SC_OK; |
48 | } | 50 | } |
49 | if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) | 51 | if (0 == (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) |
50 | { | 52 | { |
@@ -88,6 +90,7 @@ suspend_action (void *cls, | |||
88 | } | 90 | } |
89 | #endif | 91 | #endif |
90 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | 92 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); |
93 | return MHD_SC_OK; | ||
91 | } | 94 | } |
92 | 95 | ||
93 | 96 | ||