|
@@ -69,7 +69,7 @@ PatchServer::~PatchServer()
|
|
// nicht constant
|
|
// nicht constant
|
|
void PatchServer::runn()
|
|
void PatchServer::runn()
|
|
{
|
|
{
|
|
- while( !end )
|
|
|
|
|
|
+ while( !end && aServer->isConnected() )
|
|
{
|
|
{
|
|
SSLSKlient *klient;
|
|
SSLSKlient *klient;
|
|
klient = aServer->getKlient();
|
|
klient = aServer->getKlient();
|
|
@@ -81,7 +81,7 @@ void PatchServer::runn()
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if( !klient )
|
|
if( !klient )
|
|
- return;
|
|
|
|
|
|
+ continue;
|
|
PSAKlient *clHandle = new PSAKlient( klient, getThis(), ini->getThis() );
|
|
PSAKlient *clHandle = new PSAKlient( klient, getThis(), ini->getThis() );
|
|
clHandle->start();
|
|
clHandle->start();
|
|
}
|
|
}
|
|
@@ -89,12 +89,12 @@ void PatchServer::runn()
|
|
|
|
|
|
void PatchServer::thread()
|
|
void PatchServer::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();
|
|
PSKlient *clHandle = new PSKlient( klient, getThis(), ini->getThis() );
|
|
PSKlient *clHandle = new PSKlient( klient, getThis(), ini->getThis() );
|
|
EnterCriticalSection( &cs );
|
|
EnterCriticalSection( &cs );
|