diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:45:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:45:23 +0000 |
commit | 8fc3f747a85b4367b863a57ae9ea96b5b58f2f65 (patch) | |
tree | 1722ecab669c9aa29d53317c2df4f44fe5eedbf8 /src/util | |
parent | 2d4c97b88bcb0858b16dcd0f48ab68f90ecda96d (diff) | |
download | gnunet-8fc3f747a85b4367b863a57ae9ea96b5b58f2f65.tar.gz gnunet-8fc3f747a85b4367b863a57ae9ea96b5b58f2f65.zip |
-update priority to shutdown if that is being used
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/scheduler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index ac4f89a73..f61a0b5bb 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -417,7 +417,7 @@ queue_ready_task (struct GNUNET_SCHEDULER_Task *task) | |||
417 | enum GNUNET_SCHEDULER_Priority p = check_priority (task->priority); | 417 | enum GNUNET_SCHEDULER_Priority p = check_priority (task->priority); |
418 | 418 | ||
419 | if (0 != (task->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | 419 | if (0 != (task->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
420 | p = GNUNET_SCHEDULER_PRIORITY_SHUTDOWN; | 420 | p = task->priority = GNUNET_SCHEDULER_PRIORITY_SHUTDOWN; |
421 | GNUNET_CONTAINER_DLL_insert (ready_head[p], | 421 | GNUNET_CONTAINER_DLL_insert (ready_head[p], |
422 | ready_tail[p], | 422 | ready_tail[p], |
423 | task); | 423 | task); |