diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-05-23 20:53:03 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-06-14 17:28:37 +0300 |
commit | b138973a8b4bbe061ad97011f278a21e08ea79e6 (patch) | |
tree | bb8ee10b39b7edf18ac8d4b982a909f5f9dd3f7d | |
parent | f79a664314b88941c1a2796623e846d0a5916c06 (diff) | |
download | bitcoin-b138973a8b4bbe061ad97011f278a21e08ea79e6.tar.xz |
refactor: Avoid recursive locking in CAddrMan::Clear
Co-authored-by: John Newbery <john@johnnewbery.com>
-rw-r--r-- | src/addrman.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrman.h b/src/addrman.h index 2250d1a14c..b391bac258 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -299,7 +299,7 @@ public: { LOCK(cs); - Clear(); + assert(vRandom.empty()); Format format; s_ >> Using<CustomUintFormatter<1>>(format); |