Bugfixes 2 #208

Merged
andrey merged 10 commits from bugfixes2 into master 2026-08-05 23:26:37 +03:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 1ddec15b87 - Show all commits
+4 -1
View File
@@ -623,7 +623,10 @@ bool PIPeer::dataRead(const uchar * readed, ssize_t size) {
return true; return true;
} }
cnt++; cnt++;
if (cnt > _PIPEER_MSG_TTL || from == dp->name) return true; if (cnt > _PIPEER_MSG_TTL || from == dp->name) {
eth_mutex.unlock();
return true;
}
sba << type << from << to << cnt << pba; sba << type << from << to << cnt << pba;
// piCout << "translate packet" << from << "->" << to << ", ttl =" << cnt; // piCout << "translate packet" << from << "->" << to << ", ttl =" << cnt;
sendToNeighbour(dp, sba); sendToNeighbour(dp, sba);
+1 -1
View File
@@ -60,7 +60,7 @@ STATIC_INITIALIZER_END
PRIVATE_DEFINITION_START(PIMQTT::Client) PRIVATE_DEFINITION_START(PIMQTT::Client)
MQTTClient client = nullptr; MQTTClient client = nullptr;
bool connected = false; std::atomic<bool> connected{false};
PIProtectedVariable<EndpointsStorage> endpoints; PIProtectedVariable<EndpointsStorage> endpoints;