diff --git a/src/scheduler.c b/src/scheduler.c index 056d0183ace4e5d5a12094672e3785634abcb3d2..0426026755b5f93c953e198651ade1bc9c85eb43 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -850,7 +850,7 @@ struct task *scheduler_gettask ( struct scheduler *s , int qid , struct cell *su for ( int tries = 0 ; res == NULL && s->waiting && tries < scheduler_maxtries ; tries++ ) { /* Try to get a task from the suggested queue. */ - if ( s->queues[qid].count > 0 && ( res = queue_gettask( &s->queues[qid] , super , 1 ) ) != NULL ) + if ( s->queues[qid].count > 0 && ( res = queue_gettask( &s->queues[qid] , super , 0 ) ) != NULL ) break; /* If unsucessful, try stealing from the other queues. */