cListenThread: Fixed thread termination.
This commit is contained in:
parent
d147935853
commit
4bf596a586
@ -224,7 +224,10 @@ void cListenThread::Execute(void)
|
|||||||
if (itr->IsValid() && FD_ISSET(itr->GetSocket(), &fdRead))
|
if (itr->IsValid() && FD_ISSET(itr->GetSocket(), &fdRead))
|
||||||
{
|
{
|
||||||
cSocket Client = (m_Family == cSocket::IPv4) ? itr->AcceptIPv4() : itr->AcceptIPv6();
|
cSocket Client = (m_Family == cSocket::IPv4) ? itr->AcceptIPv4() : itr->AcceptIPv6();
|
||||||
m_Callback.OnConnectionAccepted(Client);
|
if (Client.IsValid())
|
||||||
|
{
|
||||||
|
m_Callback.OnConnectionAccepted(Client);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} // for itr - m_Sockets[]
|
} // for itr - m_Sockets[]
|
||||||
} // while (!m_ShouldTerminate)
|
} // while (!m_ShouldTerminate)
|
||||||
|
Loading…
Reference in New Issue
Block a user