From: prascle Date: Tue, 19 Feb 2008 16:34:23 +0000 (+0000) Subject: PR: from BR_Dev_For_4_0: superv container exit X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c52fd83a8a58cf23ce1f1170ae3e1f8317f4c25;p=modules%2Fkernel.git PR: from BR_Dev_For_4_0: superv container exit --- diff --git a/src/Container/SALOME_Container.cxx b/src/Container/SALOME_Container.cxx index 00345f670..39812040d 100644 --- a/src/Container/SALOME_Container.cxx +++ b/src/Container/SALOME_Container.cxx @@ -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&) {