mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-12-06 13:04:09 +01:00
Bugfix: Don't consider invalid listening socket in hSocketMax
Fixed upstream in 8f10a28890.
This commit is contained in:
+3
-1
@@ -843,8 +843,10 @@ void ThreadSocketHandler2(void* parg)
|
||||
SOCKET hSocketMax = 0;
|
||||
|
||||
if(hListenSocket != INVALID_SOCKET)
|
||||
{
|
||||
FD_SET(hListenSocket, &fdsetRecv);
|
||||
hSocketMax = max(hSocketMax, hListenSocket);
|
||||
hSocketMax = max(hSocketMax, hListenSocket);
|
||||
}
|
||||
CRITICAL_BLOCK(cs_vNodes)
|
||||
{
|
||||
BOOST_FOREACH(CNode* pnode, vNodes)
|
||||
|
||||
Reference in New Issue
Block a user