]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: from BR_Dev_For_4_0: superv container exit
authorprascle <prascle>
Tue, 19 Feb 2008 16:34:23 +0000 (16:34 +0000)
committerprascle <prascle>
Tue, 19 Feb 2008 16:34:23 +0000 (16:34 +0000)
src/Container/SALOME_Container.cxx

index 00345f6700ee9ee26a807609f01e5061312e78af..39812040d6c27d0297bb27fe1406cee523776bbb 100644 (file)
@@ -187,9 +187,16 @@ int main(int argc, char* argv[])
 
       HandleServerSideSignals(orb);
 
-      PyGILState_STATE gstate = PyGILState_Ensure();
-      //Delete python container that destroy orb from python (pyCont._orb.destroy())
-      Py_Finalize();
+      if (!isSupervContainer)
+      {
+        PyGILState_STATE gstate = PyGILState_Ensure();
+        //Delete python container that destroy orb from python (pyCont._orb.destroy())
+        Py_Finalize();
+      }
+      else
+      {
+        orb->destroy();
+      }
     }
   catch(CORBA::SystemException&)
     {