|
@@ -59,7 +59,7 @@ MinigameServer::~MinigameServer()
|
|
// nicht constant
|
|
// nicht constant
|
|
void MinigameServer::runn()
|
|
void MinigameServer::runn()
|
|
{
|
|
{
|
|
- while( !end )
|
|
|
|
|
|
+ while( !end && aServer->isConnected() )
|
|
{
|
|
{
|
|
SSLSKlient *klient;
|
|
SSLSKlient *klient;
|
|
klient = aServer->getKlient();
|
|
klient = aServer->getKlient();
|
|
@@ -71,7 +71,7 @@ void MinigameServer::runn()
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if( !klient )
|
|
if( !klient )
|
|
- return;
|
|
|
|
|
|
+ continue;
|
|
MSAKlient *clHandle = new MSAKlient( klient, getThis() );
|
|
MSAKlient *clHandle = new MSAKlient( klient, getThis() );
|
|
clHandle->start();
|
|
clHandle->start();
|
|
}
|
|
}
|
|
@@ -79,12 +79,12 @@ void MinigameServer::runn()
|
|
|
|
|
|
void MinigameServer::thread()
|
|
void MinigameServer::thread()
|
|
{
|
|
{
|
|
- while( 1 )
|
|
|
|
|
|
+ while( server->isConnected() )
|
|
{
|
|
{
|
|
SKlient *klient;
|
|
SKlient *klient;
|
|
klient = server->getKlient();
|
|
klient = server->getKlient();
|
|
if( !klient )
|
|
if( !klient )
|
|
- break;
|
|
|
|
|
|
+ continue;
|
|
Framework::getThreadRegister()->cleanUpClosedThreads();
|
|
Framework::getThreadRegister()->cleanUpClosedThreads();
|
|
MSKlient *clHandle = new MSKlient( klient, getThis() );
|
|
MSKlient *clHandle = new MSKlient( klient, getThis() );
|
|
EnterCriticalSection( &cs );
|
|
EnterCriticalSection( &cs );
|