diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:35:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-24 01:35:11 +0000 |
commit | ce61391973d0326a55cb907bbfa92ba27f2b106b (patch) | |
tree | 95a1bfb34b399f39643fb0bd919b1c1bdd1fcd22 /src | |
parent | 25380f86d1739bd73db86cea90154eec6175b7d5 (diff) | |
download | gnunet-ce61391973d0326a55cb907bbfa92ba27f2b106b.tar.gz gnunet-ce61391973d0326a55cb907bbfa92ba27f2b106b.zip |
-shutdown alone does not move to ready list
Diffstat (limited to 'src')
-rw-r--r-- | src/util/scheduler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index ec45889ea..8bac9e08f 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -899,7 +899,8 @@ GNUNET_SCHEDULER_cancel (struct GNUNET_SCHEDULER_Task *task) | |||
899 | void *ret; | 899 | void *ret; |
900 | 900 | ||
901 | GNUNET_assert (NULL != active_task); | 901 | GNUNET_assert (NULL != active_task); |
902 | if (GNUNET_SCHEDULER_REASON_NONE == task->reason) | 902 | if ( (GNUNET_SCHEDULER_REASON_NONE == task->reason) || |
903 | (GNUNET_SCHEDULER_REASON_SHUTDOWN == task->reason) ) | ||
903 | { | 904 | { |
904 | if ( (-1 == task->read_fd) && | 905 | if ( (-1 == task->read_fd) && |
905 | (-1 == task->write_fd) && | 906 | (-1 == task->write_fd) && |