From e4c2e82c1206dc562b2a79c94996ad2e0e5999cd Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 24 Mar 2011 08:45:35 +0000 Subject: [PATCH] Keep session alive when exiting with "Shutdown servers" deactivated. --- src/Session/SALOME_Session_Server.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index fbbf0c635..ca8aa3824 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -575,8 +575,11 @@ int main( int argc, char **argv ) if ( result == SUIT_Session::NORMAL ) { // desktop is closed by user from GUI shutdown = aGUISession->exitFlags(); - _SessionMutex.lock(); - break; + if(shutdown) + { + _SessionMutex.lock(); + break; + } } } -- 2.39.2