]> SALOME platform Git repositories - modules/jobmanager.git/commitdiff
Salome HOME
Fix bug on edit/clone
authorribes <ribes>
Wed, 8 Sep 2010 13:06:52 +0000 (13:06 +0000)
committerribes <ribes>
Wed, 8 Sep 2010 13:06:52 +0000 (13:06 +0000)
src/engine/BL_JobsManager.cxx

index 62a699943e33bba512cd2908e2ebe0fe804be124..7bafd8011995526cca18c303af55eca826b2407f 100644 (file)
@@ -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 != "")
     {