Explorar o código

Fehler bei unverschlüsselten Clients behoben

Kolja Strohm %!s(int64=6) %!d(string=hai) anos
pai
achega
3e47918de8
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      InformationServer/InformationServer.cpp

+ 4 - 4
InformationServer/InformationServer.cpp

@@ -60,7 +60,7 @@ InformationServer::~InformationServer()
 // nicht constant 
 void InformationServer::runn()
 {
-	while( !end )
+	while( !end && aServer->isConnected() )
 	{
 		SSLSKlient *klient;
 		klient = aServer->getKlient();
@@ -72,7 +72,7 @@ void InformationServer::runn()
 			return;
 		}
 		if( !klient )
-			return;
+			continue;
 		ISAKlient *clHandle = new ISAKlient( klient, getThis() );
 		clHandle->start();
 	}
@@ -80,12 +80,12 @@ void InformationServer::runn()
 
 void InformationServer::thread()
 {
-	while( 1 )
+	while( server->isConnected() )
 	{
 		SKlient *klient;
 		klient = server->getKlient();
 		if( !klient )
-			break;
+			continue;
 		Framework::getThreadRegister()->cleanUpClosedThreads();
 		ISKlient *clHandle = new ISKlient( klient, getThis() );
 		EnterCriticalSection( &cs );