Rewritten SocketThreads for proper shutdown scenario.
This fixes #560 and #390.
This commit is contained in:
@@ -118,7 +118,7 @@ cServer::cServer(void) :
|
||||
|
||||
void cServer::ClientDestroying(const cClientHandle * a_Client)
|
||||
{
|
||||
m_SocketThreads.StopReading(a_Client);
|
||||
m_SocketThreads.RemoveClient(a_Client);
|
||||
}
|
||||
|
||||
|
||||
@@ -143,15 +143,6 @@ void cServer::WriteToClient(const cClientHandle * a_Client, const AString & a_Da
|
||||
|
||||
|
||||
|
||||
void cServer::QueueClientClose(const cClientHandle * a_Client)
|
||||
{
|
||||
m_SocketThreads.QueueClose(a_Client);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cServer::RemoveClient(const cClientHandle * a_Client)
|
||||
{
|
||||
m_SocketThreads.RemoveClient(a_Client);
|
||||
|
||||
Reference in New Issue
Block a user