]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Shutdown Session server (move it to the end of shutdownServers() to avoid problems...
authorvsr <vsr@opencascade.com>
Thu, 15 Mar 2012 06:51:08 +0000 (06:51 +0000)
committervsr <vsr@opencascade.com>
Thu, 15 Mar 2012 06:51:08 +0000 (06:51 +0000)
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx

index 4a80ac229892d30743488d98319ccfd9e9f04a94..d09453f23427e766bbb6454719b4789c3935eeb2 100644 (file)
@@ -550,7 +550,6 @@ void SALOME_LifeCycleCORBA::shutdownServers()
     if (!CORBA::is_nil(session))
     {
       pid = session->getPID();
-      session->Shutdown();
     }
   }
 
@@ -645,7 +644,19 @@ void SALOME_LifeCycleCORBA::shutdownServers()
        // ignore and continue
     }
 
-  // 6) Logger
+  // 6) Session
+  if ( !CORBA::is_nil( session ) ) {
+    try
+    {
+      session->Shutdown();
+    }
+    catch(const CORBA::Exception& e)
+    {
+      // ignore and continue
+    }
+  }
+
+  // 7) Logger
   int argc = 0;
   char *xargv = (char*)"";
   char **argv = &xargv;