mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
refactor: Avoid recursive locking in CAddrMan::size
This commit is contained in:
parent
2da95545ea
commit
efc6fac951
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ void CAddrMan::Attempt_(const CService& addr, bool fCountFailure, int64_t nTime)
|
|||
|
||||
CAddrInfo CAddrMan::Select_(bool newOnly)
|
||||
{
|
||||
if (size() == 0)
|
||||
if (vRandom.empty())
|
||||
return CAddrInfo();
|
||||
|
||||
if (newOnly && nNew == 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue