mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02: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
Add a link
Reference in a new issue