1
0
forked from 0ad/0ad

Fixed endless loop after closed socket connection

This was SVN commit r822.
This commit is contained in:
Simon Brenner 2004-07-27 20:59:46 +00:00
parent a9c197f549
commit 8ae3658f84

View File

@ -648,6 +648,7 @@ void CSocketBase::RunWaitLoop()
(res == 0 && nRead == 0))
{
printf("RunWaitLoop:ioctl: Connection broken [%d:%s]\n", errno, strerror(errno));
pSock->SetOpMask(0);
pSock->m_State=SS_UNCONNECTED;
if (errno)
pSock->m_Error=GetPS_RESULT(errno);