mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
Remove unused MG_SWAPxx macros
This commit is contained in:
1 parent
16a7ba6bf0
commit
d2744063a0
4 files changed
+18
-18
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user