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