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