fixes crash on back

This commit is contained in:
Justin Mitchell
2026-01-14 13:25:33 -05:00
parent 0fa57a6bb4
commit 0313259998
2 changed files with 49 additions and 24 deletions

View File

@@ -66,6 +66,7 @@ class CalibreWirelessActivity final : public Activity {
SemaphoreHandle_t renderingMutex = nullptr;
SemaphoreHandle_t stateMutex = nullptr;
bool updateRequired = false;
volatile bool shouldExit = false; // Signal for tasks to exit gracefully
WirelessState state = WirelessState::DISCOVERING;
const std::function<void()> onComplete;