Locking bug

This commit is contained in:
Gregor Richards 2016-12-20 19:42:53 -05:00
parent b114aa9616
commit b40c1311b6

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)
{