|
@@ -60,7 +60,7 @@ InformationServer::~InformationServer()
|
|
// nicht constant
|
|
// nicht constant
|
|
void InformationServer::runn()
|
|
void InformationServer::runn()
|
|
{
|
|
{
|
|
- while( !end )
|
|
|
|
|
|
+ while( !end && aServer->isConnected() )
|
|
{
|
|
{
|
|
SSLSKlient *klient;
|
|
SSLSKlient *klient;
|
|
klient = aServer->getKlient();
|
|
klient = aServer->getKlient();
|
|
@@ -72,7 +72,7 @@ void InformationServer::runn()
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if( !klient )
|
|
if( !klient )
|
|
- return;
|
|
|
|
|
|
+ continue;
|
|
ISAKlient *clHandle = new ISAKlient( klient, getThis() );
|
|
ISAKlient *clHandle = new ISAKlient( klient, getThis() );
|
|
clHandle->start();
|
|
clHandle->start();
|
|
}
|
|
}
|
|
@@ -80,12 +80,12 @@ void InformationServer::runn()
|
|
|
|
|
|
void InformationServer::thread()
|
|
void InformationServer::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();
|
|
ISKlient *clHandle = new ISKlient( klient, getThis() );
|
|
ISKlient *clHandle = new ISKlient( klient, getThis() );
|
|
EnterCriticalSection( &cs );
|
|
EnterCriticalSection( &cs );
|