File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1239,8 +1239,8 @@ void CConnman::ThreadSocketHandler()
1239
1239
if (!pnode->ReceiveMsgBytes (pchBuf, nBytes, notify))
1240
1240
pnode->CloseSocketDisconnect ();
1241
1241
RecordBytesRecv (nBytes);
1242
- if (notify)
1243
- condMsgProc. notify_one ();
1242
+ if (notify)
1243
+ WakeMessageHandler ();
1244
1244
}
1245
1245
else if (nBytes == 0 )
1246
1246
{
@@ -1315,8 +1315,10 @@ void CConnman::ThreadSocketHandler()
1315
1315
}
1316
1316
}
1317
1317
1318
-
1319
-
1318
+ void CConnman::WakeMessageHandler ()
1319
+ {
1320
+ condMsgProc.notify_one ();
1321
+ }
1320
1322
1321
1323
1322
1324
Original file line number Diff line number Diff line change @@ -341,6 +341,8 @@ class CConnman
341
341
void ThreadSocketHandler ();
342
342
void ThreadDNSAddressSeed ();
343
343
344
+ void WakeMessageHandler ();
345
+
344
346
uint64_t CalculateKeyedNetGroup (const CAddress& ad);
345
347
346
348
CNode* FindNode (const CNetAddr& ip);
You can’t perform that action at this time.
0 commit comments