Tiny refactoring - move clearance of the c->is_resolving flag to the mg_connect_resolved()

This commit is contained in:
Sergey Lyubka committed 2022-02-19 16:17:03 +00:00
1 parent c579b73f75
commit 507935d067
5 files changed
+7 -6

No files matched your search

-1
View File
@@ -153,7 +153,6 @@ static void dns_cb(struct mg_connection *c, int ev, void *ev_data,
// MG_INFO(("d %p %hu %hu", d, d->txnid, dm.txnid));
if (dm.txnid != d->txnid) continue;
if (d->c->is_resolving) {
d->c->is_resolving = 0;
if (dm.resolved) {
char buf[100];
dm.addr.port = d->c->peer.port; // Save port