소스 검색

Fehler bei unverschlüsselten Clients behoben

Kolja Strohm 6 년 전
부모
커밋
c06ad8be5a
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      KartenServer/KartenServer.cpp

+ 4 - 4
KartenServer/KartenServer.cpp

@@ -62,7 +62,7 @@ KartenServer::~KartenServer()
 // nicht constant 
 void KartenServer::runn()
 {
-    while( !end )
+    while( !end && aServer->isConnected() )
     {
         SSLSKlient *klient;
         klient = aServer->getKlient();
@@ -74,7 +74,7 @@ void KartenServer::runn()
             return;
         }
         if( !klient )
-            return;
+            continue;
         KSAKlient *clHandle = new KSAKlient( klient, getThis() );
         clHandle->start();
     }
@@ -82,12 +82,12 @@ void KartenServer::runn()
 
 void KartenServer::thread()
 {
-    while( 1 )
+    while( server->isConnected() )
     {
         SKlient *klient;
         klient = server->getKlient();
         if( !klient )
-            break;
+            continue;
 		Framework::getThreadRegister()->cleanUpClosedThreads();
         KSKlient *clHandle = new KSKlient( klient, getThis() );
         EnterCriticalSection( &cs );