From 3bf53d7530674f0023b04bec73a486e2a5484a10 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 19 Feb 2008 14:54:10 +0000 Subject: [PATCH] Patch from Paul RASCLE: avoid CORBA exception on Session server exiting --- src/Session/SALOME_Session_Server.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 37823d43a..ed3c28d06 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -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; } -- 2.39.2