Commit 2ac231cb authored by Oliver Schneider's avatar Oliver Schneider

mg_printf_data was ignored if mg_destroy_server was called directly after

parent a741d530
......@@ -3536,6 +3536,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