|
@@ -92,7 +92,7 @@ void SpielServer::unlock()
|
|
|
|
|
|
void SpielServer::runn()
|
|
void SpielServer::runn()
|
|
{
|
|
{
|
|
- while( !end )
|
|
|
|
|
|
+ while( !end && aServer->isConnected() )
|
|
{
|
|
{
|
|
SSLSKlient *klient;
|
|
SSLSKlient *klient;
|
|
klient = aServer->getKlient();
|
|
klient = aServer->getKlient();
|
|
@@ -104,7 +104,7 @@ void SpielServer::runn()
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if( !klient )
|
|
if( !klient )
|
|
- return;
|
|
|
|
|
|
+ continue;
|
|
SSAKlient *slHandle = new SSAKlient( klient, getThis() );
|
|
SSAKlient *slHandle = new SSAKlient( klient, getThis() );
|
|
slHandle->start();
|
|
slHandle->start();
|
|
}
|
|
}
|
|
@@ -112,12 +112,12 @@ void SpielServer::runn()
|
|
|
|
|
|
void SpielServer::thread()
|
|
void SpielServer::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();
|
|
SSKlient *slHandle = new SSKlient( klient, getThis() );
|
|
SSKlient *slHandle = new SSKlient( klient, getThis() );
|
|
klientAnzahl2++;
|
|
klientAnzahl2++;
|