diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-02-16 07:24:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-02-16 07:24:42 +0100 |
commit | 285adcb02aaf613b173bab0d2cde6cbaf504b800 (patch) | |
tree | 6e5ca9b8fcf470f7012c9b715f914fc40928b975 | |
parent | a2f8683def34643b64a3c1afd00900fbe99f6d0f (diff) | |
download | libmicrohttpd-285adcb02aaf613b173bab0d2cde6cbaf504b800.tar.gz libmicrohttpd-285adcb02aaf613b173bab0d2cde6cbaf504b800.zip |
initialize daemon immediately, style fix
-rw-r--r-- | src/microhttpd/daemon.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index d8a89e25..b6906459 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2677,9 +2677,8 @@ MHD_suspend_connection (struct MHD_Connection *connection) | |||
2677 | void | 2677 | void |
2678 | MHD_resume_connection (struct MHD_Connection *connection) | 2678 | MHD_resume_connection (struct MHD_Connection *connection) |
2679 | { | 2679 | { |
2680 | struct MHD_Daemon *daemon; | 2680 | struct MHD_Daemon *daemon = connection->daemon; |
2681 | 2681 | ||
2682 | daemon = connection->daemon; | ||
2683 | if (0 == (daemon->options & MHD_TEST_ALLOW_SUSPEND_RESUME)) | 2682 | if (0 == (daemon->options & MHD_TEST_ALLOW_SUSPEND_RESUME)) |
2684 | MHD_PANIC (_("Cannot resume connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")); | 2683 | MHD_PANIC (_("Cannot resume connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n")); |
2685 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); | 2684 | MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); |