|
@@ -57,7 +57,7 @@ ErhaltungServer::~ErhaltungServer()
|
|
|
|
|
|
void ErhaltungServer::runn()
|
|
|
{
|
|
|
- while( !end )
|
|
|
+ while( !end && aServer->isConnected() )
|
|
|
{
|
|
|
SSLSKlient *klient;
|
|
|
klient = aServer->getKlient();
|
|
@@ -69,7 +69,7 @@ void ErhaltungServer::runn()
|
|
|
return;
|
|
|
}
|
|
|
if( !klient )
|
|
|
- return;
|
|
|
+ continue;
|
|
|
ESAKlient *clHandle = new ESAKlient( klient, getThis() );
|
|
|
clHandle->start();
|
|
|
}
|
|
@@ -77,12 +77,12 @@ void ErhaltungServer::runn()
|
|
|
|
|
|
void ErhaltungServer::thread()
|
|
|
{
|
|
|
- while( 1 )
|
|
|
+ while( server->isConnected() )
|
|
|
{
|
|
|
SKlient *klient;
|
|
|
klient = server->getKlient();
|
|
|
if( !klient )
|
|
|
- break;
|
|
|
+ continue;
|
|
|
Framework::getThreadRegister()->cleanUpClosedThreads();
|
|
|
ESKlient *clHandle = new ESKlient( klient, getThis() );
|
|
|
clients++;
|