mirror of
https://github.com/espressif/esp-protocols.git
synced 2026-07-07 17:10:52 +02:00
fix(mdns): fix deadlock caused by re-acquiring the service lock
This commit is contained in:
@@ -76,7 +76,7 @@ static void browse_sync(mdns_browse_sync_t *browse_sync)
|
||||
queueDetach(mdns_result_t, browse->result, result);
|
||||
// Just free current result
|
||||
result->next = NULL;
|
||||
mdns_query_results_free(result);
|
||||
mdns_priv_query_results_free(result);
|
||||
}
|
||||
sync_result = sync_result->next;
|
||||
}
|
||||
|
||||
@@ -453,6 +453,6 @@ esp_err_t mdns_unregister_netif(esp_netif_t *esp_netif)
|
||||
break;
|
||||
}
|
||||
}
|
||||
mdns_priv_service_lock();
|
||||
mdns_priv_service_unlock();
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user