Commit 4eef5b14 authored by Sergey Lyubka's avatar Sergey Lyubka
parent 283af71b
...@@ -3613,6 +3613,7 @@ void mg_destroy_server(struct mg_server **server) { ...@@ -3613,6 +3613,7 @@ void mg_destroy_server(struct mg_server **server) {
struct ll *lp, *tmp; struct ll *lp, *tmp;
if (server != NULL && *server != NULL) { if (server != NULL && *server != NULL) {
// Do one last poll, see https://github.com/cesanta/mongoose/issues/286
mg_poll_server(*server, 0); mg_poll_server(*server, 0);
closesocket((*server)->listening_sock); closesocket((*server)->listening_sock);
closesocket((*server)->ctl[0]); closesocket((*server)->ctl[0]);
......
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