Revert "Locking bug"

This reverts commit b40c1311b6d5379e58a0065b4b294b59e7733f28.
This commit is contained in:
twinaphex 2016-12-21 12:23:19 +01:00
parent 0008e9a046
commit 1344e91286

View File

@ -433,11 +433,14 @@ static void threaded_worker(void *userdata)
continue;
}
task_queue_remove(&tasks_running, task);
slock_unlock(running_lock);
task->handler(task);
slock_lock(running_lock);
task_queue_remove(&tasks_running, task);
slock_unlock(running_lock);
/* Update queue */
if (!task->finished)
{