aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-23 18:54:23 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-14 17:21:28 +0300
commitefc6fac951e75ba913350bb470c3d4e6a4e284b9 (patch)
tree5102e9b6fb71a60f941a7a0328556e61d3fb5890 /src
parent2da95545ea42f925dbc7703e42e9356908a8c83e (diff)
refactor: Avoid recursive locking in CAddrMan::size
Diffstat (limited to 'src')
-rw-r--r--src/addrman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp
index b9fee8f627..36cd28cc58 100644
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -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)