From d3a9de1eeb6a07673af5125757c17740fb18ef56 Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 8 Sep 2010 13:06:52 +0000 Subject: [PATCH] Fix bug on edit/clone --- src/engine/BL_JobsManager.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/BL_JobsManager.cxx b/src/engine/BL_JobsManager.cxx index 62a6999..7bafd80 100644 --- a/src/engine/BL_JobsManager.cxx +++ b/src/engine/BL_JobsManager.cxx @@ -82,10 +82,14 @@ BL::JobsManager::addJobToLauncher(const std::string & name) // TODO: SHOULD SEND an exeception... DEBMSG("[addJobToLauncher] failed, job was not found"); } - _thread_mutex_jobs_map.unlock(); - std::string result = ""; result = _salome_services->create_job(_jobs_it->second); + + // Unlock is here to be sure that + // method setSalomeLauncherId is called if + // the creation is successfull + _thread_mutex_jobs_map.unlock(); + if (_observer) if (result != "") { -- 2.39.2