]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Patch from Paul RASCLE: avoid CORBA exception on Session server exiting
authorvsr <vsr@opencascade.com>
Tue, 19 Feb 2008 14:54:10 +0000 (14:54 +0000)
committervsr <vsr@opencascade.com>
Tue, 19 Feb 2008 14:54:10 +0000 (14:54 +0000)
src/Session/SALOME_Session_Server.cxx

index 37823d43aef08f82dd7520e219d5fe7b4e3a9ab7..ed3c28d06532f81a0ec6a28f091d0a26eb856feb 100755 (executable)
@@ -687,10 +687,8 @@ int main( int argc, char **argv )
   // unlock Session mutex
   _SessionMutex.unlock();
   
-  if ( shutdown ) {
+  if ( shutdown )
     shutdownServers( _NS );
-    killOmniNames();
-  }
 
   if ( myServerLauncher )
     myServerLauncher->KillAll(); // kill embedded servers
@@ -712,8 +710,8 @@ int main( int argc, char **argv )
       std::cerr << "Caught unexpected exception on destroy : ignored !!" << std::endl;
     }
 
-  //  if ( shutdown )
-  //    killOmniNames();
+  if ( shutdown )
+    killOmniNames();
 
   return result;
 }