mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 18:42:20 -04:00
fixed possible bug due to misplaced mutex (Reported by bNK)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5318 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
ee77ec8c6c
commit
616825ec4b
1 changed files with 2 additions and 1 deletions
|
@ -300,10 +300,11 @@ void p3BandwidthControl::statusChange(const std::list<pqipeer> &plist)
|
|||
{
|
||||
if (it->state & RS_PEER_S_FRIEND)
|
||||
{
|
||||
RsStackMutex stack(mBwMtx); /****** LOCKED MUTEX *******/
|
||||
|
||||
if (it->actions & RS_PEER_DISCONNECTED)
|
||||
{
|
||||
/* remove from map */
|
||||
RsStackMutex stack(mBwMtx); /****** LOCKED MUTEX *******/
|
||||
std::map<std::string, BwCtrlData>::iterator bit;
|
||||
bit = mBwMap.find(it->id);
|
||||
if (bit == mBwMap.end())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue