From 3556227ddd3365cfac43b307204d73058b2943f0 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Sat, 20 Jun 2020 23:17:29 -0400 Subject: [PATCH] [net] Make cs_inventory a non-recursive mutex cs_inventory is never taken recursively. Make it a non-recursive mutex. --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index ddb185763..3c2376395 100644 --- a/src/net.h +++ b/src/net.h @@ -803,7 +803,7 @@ public: // There is no final sorting before sending, as they are always sent immediately // and in the order requested. std::vector vInventoryBlockToSend GUARDED_BY(cs_inventory); - RecursiveMutex cs_inventory; + Mutex cs_inventory; struct TxRelay { mutable RecursiveMutex cs_filter;