Skip to content

Commit ae98aec

Browse files
committed
refactor: Make CAddrMan::cs non-recursive
1 parent f5d1c7f commit ae98aec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addrman.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ class CAddrMan
626626
FastRandomContext insecure_rand;
627627

628628
private:
629-
//! critical section to protect the inner data structures
630-
mutable RecursiveMutex cs;
629+
//! A mutex to protect the inner data structures.
630+
mutable Mutex cs;
631631

632632
//! Serialization versions.
633633
enum Format : uint8_t {

0 commit comments

Comments
 (0)