aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index c08117d7..a97df80c 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -867,13 +867,6 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
867 urh->app.socket = MHD_INVALID_SOCKET; 867 urh->app.socket = MHD_INVALID_SOCKET;
868 urh->mhd.socket = MHD_INVALID_SOCKET; 868 urh->mhd.socket = MHD_INVALID_SOCKET;
869#endif 869#endif
870 response->upgrade_handler (response->upgrade_handler_cls,
871 connection,
872 connection->client_context,
873 connection->read_buffer,
874 rbo,
875 connection->socket_fd,
876 urh);
877 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION) ) 870 if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION) )
878 { 871 {
879 /* Need to give the thread something to block on... */ 872 /* Need to give the thread something to block on... */
@@ -899,6 +892,13 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
899 #MHD_upgrade_action() function */ 892 #MHD_upgrade_action() function */
900 MHD_suspend_connection (connection); 893 MHD_suspend_connection (connection);
901 } 894 }
895 response->upgrade_handler (response->upgrade_handler_cls,
896 connection,
897 connection->client_context,
898 connection->read_buffer,
899 rbo,
900 connection->socket_fd,
901 urh);
902 return MHD_YES; 902 return MHD_YES;
903} 903}
904 904