Bugfixes 2 #208
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user