synchronization on finalization finally solved.

This commit is contained in:
2026-04-20 19:07:03 +02:00
parent b4a4b2f554
commit cacffbcc2a
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@@ -248,10 +248,9 @@ void rkt_evt_guard(void)
handler->evt_queue->enqueue(wv, data); handler->evt_queue->enqueue(wv, data);
handler->evt_cb_mutex.lock(); handler->evt_cb_mutex.lock();
if (handler->evt_cb != nullptr) { // evt_cb could be cleared to null if (handler->evt_cb != nullptr) { // evt_cb could be cleared to null
INFO2("Calling evt_cb with %d, %s\n", wv, data.c_str()); //INFO2("Calling evt_cb with %d, %s\n", wv, data.c_str());
handler->evt_cb(1); handler->evt_cb(1);
INFO0("done\n"); //INFO0("done\n");
} else { } else {
INFO0("evt_cb = null\n"); INFO0("evt_cb = null\n");
} }