mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 13:11:57 +02:00
Make the cs_sendProcessing a LOCK instead of a TRY_LOCK
Technically cs_sendProcessing is entirely useless now because it is only ever taken on the one MessageHandler thread, but because there may be multiple of those in the future, it is left in place
This commit is contained in:
@ -1871,8 +1871,7 @@ void CConnman::ThreadMessageHandler()
|
||||
|
||||
// Send messages
|
||||
{
|
||||
TRY_LOCK(pnode->cs_sendProcessing, lockSend);
|
||||
if (lockSend)
|
||||
LOCK(pnode->cs_sendProcessing);
|
||||
GetNodeSignals().SendMessages(pnode, *this, flagInterruptMsgProc);
|
||||
}
|
||||
if (flagInterruptMsgProc)
|
||||
|
Reference in New Issue
Block a user