Skip to content

Commit b138973

Browse files
hebastojnewbery
andcommitted
refactor: Avoid recursive locking in CAddrMan::Clear
Co-authored-by: John Newbery <[email protected]>
1 parent f79a664 commit b138973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addrman.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class CAddrMan
299299
{
300300
LOCK(cs);
301301

302-
Clear();
302+
assert(vRandom.empty());
303303

304304
Format format;
305305
s_ >> Using<CustomUintFormatter<1>>(format);

0 commit comments

Comments
 (0)