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