diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-09-13 12:22:18 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-09-15 14:44:42 +1000 |
commit | bf12abe4542f2cf658516ea7e7fbbff6864c2208 (patch) | |
tree | 55176f0520016e2a3bc4f73291991c7803b7ddca /src/net.cpp | |
parent | 1e78f566d575a047a6f0b762bc79601e0208d103 (diff) | |
download | bitcoin-bf12abe4542f2cf658516ea7e7fbbff6864c2208.tar.xz |
net: drop cs_sendProcessing
SendMessages() is now protected g_msgproc_mutex; so this additional
per-node mutex is redundant.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp index 02b4ecb593..fca5aeac21 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2005,10 +2005,7 @@ void CConnman::ThreadMessageHandler() if (flagInterruptMsgProc) return; // Send messages - { - LOCK(pnode->cs_sendProcessing); - m_msgproc->SendMessages(pnode); - } + m_msgproc->SendMessages(pnode); if (flagInterruptMsgProc) return; |