Skip to content

Commit 3556227

Browse files
committed
[net] Make cs_inventory a non-recursive mutex
cs_inventory is never taken recursively. Make it a non-recursive mutex.
1 parent 344e831 commit 3556227

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ class CNode
803803
// There is no final sorting before sending, as they are always sent immediately
804804
// and in the order requested.
805805
std::vector<uint256> vInventoryBlockToSend GUARDED_BY(cs_inventory);
806-
RecursiveMutex cs_inventory;
806+
Mutex cs_inventory;
807807

808808
struct TxRelay {
809809
mutable RecursiveMutex cs_filter;

0 commit comments

Comments
 (0)