Remove unused MG_SWAPxx macros

This commit is contained in:
cpq committed 2021-04-09 16:55:12 +01:00
1 parent 16a7ba6bf0
commit d2744063a0
4 files changed
+18 -18

No files matched your search

+1 -1
View File
@@ -282,8 +282,8 @@ static int write_conn(struct mg_connection *c) {
static void close_conn(struct mg_connection *c) {
// Unlink this connection from the list
LIST_DELETE(struct mg_connection, &c->mgr->conns, c);
mg_resolve_cancel(c);
LIST_DELETE(struct mg_connection, &c->mgr->conns, c);
if (c == c->mgr->dns4.c) c->mgr->dns4.c = NULL;
if (c == c->mgr->dns6.c) c->mgr->dns6.c = NULL;
mg_call(c, MG_EV_CLOSE, NULL);