From b59b386b965cc5441d440610547d49786baece95 Mon Sep 17 00:00:00 2001 From: Ingo Date: Sun, 4 May 2014 18:21:09 +0200 Subject: [PATCH] RT stuck in loop when pasting profile, Issue 2363 --- rtengine/improccoordinator.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rtengine/improccoordinator.cc b/rtengine/improccoordinator.cc index 98c93f729..1587d3d85 100644 --- a/rtengine/improccoordinator.cc +++ b/rtengine/improccoordinator.cc @@ -865,8 +865,8 @@ void ImProcCoordinator::startProcessing () { #undef THREAD_PRIORITY_NORMAL if (!destroying) { - updaterThreadStart.lock (); if (!updaterRunning) { + updaterThreadStart.lock (); thread = NULL; updaterRunning = true; updaterThreadStart.unlock (); @@ -876,8 +876,6 @@ void ImProcCoordinator::startProcessing () { thread = Glib::Thread::create(sigc::mem_fun(*this, &ImProcCoordinator::process), 0, true, true, Glib::THREAD_PRIORITY_NORMAL); } - else - updaterThreadStart.unlock (); } }