threadsafe fixes

This commit is contained in:
2026-08-05 19:48:01 +03:00
parent 3f293ebd65
commit 1ddec15b87
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ STATIC_INITIALIZER_END
PRIVATE_DEFINITION_START(PIMQTT::Client)
MQTTClient client = nullptr;
bool connected = false;
std::atomic<bool> connected{false};
PIProtectedVariable<EndpointsStorage> endpoints;