mirror of
git://erdgeist.org/opentracker
synced 2025-02-22 17:11:29 +08:00
Tested for a too strict condition, we do need the correct tasktype AND an empty taskid, not the other way around
This commit is contained in:
parent
74a5afbe82
commit
e9d49af9fa
@ -194,7 +194,7 @@ ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ) {
|
||||
while( !taskid ) {
|
||||
/* Skip to the first unassigned task this worker wants to do */
|
||||
task = tasklist;
|
||||
while( task && ( ( TASK_MASK & task->tasktype ) != *tasktype ) && ( task->taskid ) )
|
||||
while( task && ( ( ( TASK_MASK & task->tasktype ) != *tasktype ) || task->taskid ) )
|
||||
task = task->next;
|
||||
|
||||
/* If we found an outstanding task, assign a taskid to it
|
||||
|
Loading…
x
Reference in New Issue
Block a user