SocketThreads: hopefully fixed MacOSX failure with client ping crashing the server
git-svn-id: http://mc-server.googlecode.com/svn/trunk@681 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
aaf772f68a
commit
9e3dfb3863
@ -640,7 +640,8 @@ void cSocketThreads::cSocketThread::WriteToSockets(fd_set * a_Write)
|
||||
cCSLock Lock(m_Parent->m_CS);
|
||||
for (int i = m_NumSlots - 1; i >= 0; --i)
|
||||
{
|
||||
if (!FD_ISSET(m_Slots[i].m_Socket->GetSocket(), a_Write))
|
||||
cSocket Socket(*(m_Slots[i].m_Socket));
|
||||
if (!Socket.IsValid() || !FD_ISSET(Socket.GetSocket(), a_Write))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user