|
@@ -92,7 +92,7 @@ void SpielServer::unlock()
|
|
|
|
|
|
void SpielServer::runn()
|
|
|
{
|
|
|
- while( !end )
|
|
|
+ while( !end && aServer->isConnected() )
|
|
|
{
|
|
|
SSLSKlient *klient;
|
|
|
klient = aServer->getKlient();
|
|
@@ -104,7 +104,7 @@ void SpielServer::runn()
|
|
|
return;
|
|
|
}
|
|
|
if( !klient )
|
|
|
- return;
|
|
|
+ continue;
|
|
|
SSAKlient *slHandle = new SSAKlient( klient, getThis() );
|
|
|
slHandle->start();
|
|
|
}
|
|
@@ -112,12 +112,12 @@ void SpielServer::runn()
|
|
|
|
|
|
void SpielServer::thread()
|
|
|
{
|
|
|
- while( 1 )
|
|
|
+ while( server->isConnected() )
|
|
|
{
|
|
|
SKlient *klient;
|
|
|
klient = server->getKlient();
|
|
|
if( !klient )
|
|
|
- break;
|
|
|
+ continue;
|
|
|
Framework::getThreadRegister()->cleanUpClosedThreads();
|
|
|
SSKlient *slHandle = new SSKlient( klient, getThis() );
|
|
|
klientAnzahl2++;
|