mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Cleaning up ctl sockets
This commit is contained in:
1 parent
d1bd15291e
commit
f0d3d7e81d
1 file changed
+2
@@ -971,6 +971,8 @@ void mg_destroy_server(struct mg_server **server) {
|
||||
|
||||
if (server != NULL && *server != NULL) {
|
||||
closesocket((*server)->listening_sock);
|
||||
closesocket((*server)->ctl[0]);
|
||||
closesocket((*server)->ctl[1]);
|
||||
LINKED_LIST_FOREACH(&(*server)->active_connections, lp, tmp) {
|
||||
conn = LINKED_LIST_ENTRY(lp, struct mg_connection, link);
|
||||
LINKED_LIST_REMOVE(&conn->link);
|
||||
|
||||
Reference in new issue
Block a user