Print crash record optionally

This commit is contained in:
cpq authored and robert committed 2026-10-01 14:42:16 +03:00
1 parent 1b0906510b
commit 3aa5f2a1fd
9 files changed
+119 -76

No files matched your search

+3
View File
@@ -300,6 +300,9 @@ void mg_mgr_free(struct mg_mgr *mgr) {
mgr->timers = NULL; // Important. Next call to poll won't touch timers
for (c = mgr->conns; c != NULL; c = c->next) c->is_closing = 1;
mg_mgr_poll(mgr, 0);
#if MG_ENABLE_MDASH
mg_mdash_free(mgr);
#endif
#if MG_ENABLE_FREERTOS_TCP
FreeRTOS_DeleteSocketSet(mgr->ss);
#endif