|
@@ -62,7 +62,7 @@ KartenServer::~KartenServer()
|
|
// nicht constant
|
|
// nicht constant
|
|
void KartenServer::runn()
|
|
void KartenServer::runn()
|
|
{
|
|
{
|
|
- while( !end )
|
|
|
|
|
|
+ while( !end && aServer->isConnected() )
|
|
{
|
|
{
|
|
SSLSKlient *klient;
|
|
SSLSKlient *klient;
|
|
klient = aServer->getKlient();
|
|
klient = aServer->getKlient();
|
|
@@ -74,7 +74,7 @@ void KartenServer::runn()
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if( !klient )
|
|
if( !klient )
|
|
- return;
|
|
|
|
|
|
+ continue;
|
|
KSAKlient *clHandle = new KSAKlient( klient, getThis() );
|
|
KSAKlient *clHandle = new KSAKlient( klient, getThis() );
|
|
clHandle->start();
|
|
clHandle->start();
|
|
}
|
|
}
|
|
@@ -82,12 +82,12 @@ void KartenServer::runn()
|
|
|
|
|
|
void KartenServer::thread()
|
|
void KartenServer::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();
|
|
KSKlient *clHandle = new KSKlient( klient, getThis() );
|
|
KSKlient *clHandle = new KSKlient( klient, getThis() );
|
|
EnterCriticalSection( &cs );
|
|
EnterCriticalSection( &cs );
|