1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
Michał W. Urbańczyk
2013-02-14 15:19:35 +00:00
parent 12e627ec49
commit d23a5dcfdf
4 changed files with 15 additions and 2 deletions

View File

@@ -66,6 +66,7 @@ CPregameServer::CPregameServer(CConnection *Host, TAcceptor *Acceptor /*= NULL*/
void CPregameServer::handleConnection(CConnection *cpc)
{
setThreadName("CPregameServer::handleConnection");
try
{
while(!cpc->receivedStop)
@@ -299,6 +300,7 @@ void CPregameServer::initConnection(CConnection *c)
void CPregameServer::startListeningThread(CConnection * pc)
{
listeningThreads++;
pc->enterPregameConnectionMode();
pc->handler = new boost::thread(&CPregameServer::handleConnection, this, pc);
}