From 7097a22781ee1141da0acdb711ed656c4d0a806c Mon Sep 17 00:00:00 2001 From: sehraf Date: Wed, 19 Feb 2020 20:34:52 +0100 Subject: [PATCH] [ATTEMPT] fix for inconsitency in p3linkmgr.cc --- libretroshare/src/pqi/p3linkmgr.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/pqi/p3linkmgr.cc b/libretroshare/src/pqi/p3linkmgr.cc index a63054093..4ea635c78 100644 --- a/libretroshare/src/pqi/p3linkmgr.cc +++ b/libretroshare/src/pqi/p3linkmgr.cc @@ -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 *******/