Fixed endless loop after closed socket connection
This was SVN commit r822.
This commit is contained in:
parent
a9c197f549
commit
8ae3658f84
@ -648,6 +648,7 @@ void CSocketBase::RunWaitLoop()
|
|||||||
(res == 0 && nRead == 0))
|
(res == 0 && nRead == 0))
|
||||||
{
|
{
|
||||||
printf("RunWaitLoop:ioctl: Connection broken [%d:%s]\n", errno, strerror(errno));
|
printf("RunWaitLoop:ioctl: Connection broken [%d:%s]\n", errno, strerror(errno));
|
||||||
|
pSock->SetOpMask(0);
|
||||||
pSock->m_State=SS_UNCONNECTED;
|
pSock->m_State=SS_UNCONNECTED;
|
||||||
if (errno)
|
if (errno)
|
||||||
pSock->m_Error=GetPS_RESULT(errno);
|
pSock->m_Error=GetPS_RESULT(errno);
|
||||||
|
Loading…
Reference in New Issue
Block a user