Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent double lock for 'm_banned_mutex'
`BanMan::SweepBanned()` is only called internally in `src/banman.cpp`. `BanMan::GetBanned()` locks 'm_banned_mutex' and then calls `BanMan::SweepBanned()` without releasing the lock. This commit changes `BanMan::GetBanned()` to lock 'm_banned_mutex' only after `BanMan::SweepBanned()` releases it.
- Loading branch information