Merge pull request #4290 from GregorR/cov-112612

Locking bug
This commit is contained in:
Twinaphex 2016-12-21 01:48:34 +01:00 committed by GitHub
commit bbed836e8f

View File

@ -433,14 +433,11 @@ 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)
{