refactor: Avoid recursive locking in CAddrMan::size

This commit is contained in:
Hennadii Stepanov committed 2021-06-14 17:21:28 +03:00
1 parent 2da95545ea
commit efc6fac951
1 file changed
+1 -1
+1 -1
View File
@@ -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)