From: ribes Date: Wed, 8 Sep 2010 13:06:52 +0000 (+0000) Subject: Fix bug on edit/clone X-Git-Tag: V6_2_0~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3a9de1eeb6a07673af5125757c17740fb18ef56;p=modules%2Fjobmanager.git Fix bug on edit/clone --- 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 != "") {