Commit 283af71b authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #287 from oli-obk/fix/last_send_data_before_shutdown

mg_printf_data was ignored if mg_destroy_server was called directly afte...
parents ff85b802 2ac231cb
......@@ -3613,6 +3613,7 @@ void mg_destroy_server(struct mg_server **server) {
struct ll *lp, *tmp;
if (server != NULL && *server != NULL) {
mg_poll_server(*server, 0);
closesocket((*server)->listening_sock);
closesocket((*server)->ctl[0]);
closesocket((*server)->ctl[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment