threadsafe fixes
This commit is contained in:
@@ -623,7 +623,10 @@ bool PIPeer::dataRead(const uchar * readed, ssize_t size) {
|
||||
return true;
|
||||
}
|
||||
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;
|
||||
// piCout << "translate packet" << from << "->" << to << ", ttl =" << cnt;
|
||||
sendToNeighbour(dp, sba);
|
||||
|
||||
Reference in New Issue
Block a user