Просмотр исходного кода

Fehler bei unverschlüsselten Clients behoben

Kolja Strohm 6 лет назад
Родитель
Сommit
6e303cc943
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      EditorServer/EditorServer.cpp

+ 4 - 4
EditorServer/EditorServer.cpp

@@ -59,7 +59,7 @@ EditorServer::~EditorServer()
 // nicht constant 
 void EditorServer::runn()
 {
-    while( !end )
+    while( !end && aServer->isConnected() )
     {
         SSLSKlient *klient;
         klient = aServer->getKlient();
@@ -71,7 +71,7 @@ void EditorServer::runn()
             return;
         }
         if( !klient )
-            return;
+            continue;
         EdSAKlient *clHandle = new EdSAKlient( klient, getThis() );
         clHandle->start();
     }
@@ -79,12 +79,12 @@ void EditorServer::runn()
 
 void EditorServer::thread()
 {
-    while( 1 )
+    while( server->isConnected() )
     {
         SKlient *klient;
         klient = server->getKlient();
         if( !klient )
-            break;
+            continue;
 		Framework::getThreadRegister()->cleanUpClosedThreads();
         EdSKlient *clHandle = new EdSKlient( klient, getThis() );
         EnterCriticalSection( &cs );