File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1244,8 +1244,8 @@ void CConnman::ThreadSocketHandler()
12441244 if (!pnode->ReceiveMsgBytes (pchBuf, nBytes, notify))
12451245 pnode->CloseSocketDisconnect ();
12461246 RecordBytesRecv (nBytes);
1247- if (notify)
1248- condMsgProc. notify_one ();
1247+ if (notify)
1248+ WakeMessageHandler ();
12491249 } else if (nBytes == 0 ) {
12501250 // socket closed gracefully
12511251 if (!pnode->fDisconnect )
@@ -1304,6 +1304,11 @@ void CConnman::ThreadSocketHandler()
13041304 }
13051305}
13061306
1307+ void CConnman::WakeMessageHandler ()
1308+ {
1309+ condMsgProc.notify_one ();
1310+ }
1311+
13071312
13081313#ifdef USE_UPNP
13091314void ThreadMapPort ()
Original file line number Diff line number Diff line change @@ -302,6 +302,8 @@ class CConnman
302302 void ThreadSocketHandler ();
303303 void ThreadDNSAddressSeed ();
304304
305+ void WakeMessageHandler ();
306+
305307 CNode* FindNode (const CNetAddr& ip);
306308 CNode* FindNode (const CSubNet& subNet);
307309 CNode* FindNode (const std::string& addrName);
You can’t perform that action at this time.
0 commit comments