[ATTEMPT] fix for inconsitency in p3linkmgr.cc

This commit is contained in:
sehraf 2020-02-19 20:34:52 +01:00
parent 0678226a93
commit 7097a22781
No known key found for this signature in database
GPG Key ID: DF09F6EAE356B2C6

View File

@ -1063,8 +1063,12 @@ void p3LinkMgrIMPL::peerStatus(const RsPeerId& id, const pqiIpAddrSet &addrs,
uint32_t peer_vs_dht = 0;
uint32_t peerNetMode = 0;
uint32_t ownNetMode = mNetMgr->getNetworkMode();
int ownNetMode;
{
peerState ps;
mPeerMgr->getOwnNetStatus(ps);
ownNetMode = ps.netMode;
}
{
RsStackMutex stack(mLinkMtx); /****** STACK LOCK MUTEX *******/