diff options
author | lurchi <lurchi@strangeplace.net> | 2017-08-08 18:42:02 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2017-08-08 18:42:02 +0200 |
commit | 99603b4ebf07ea30130514f9b8770d22f2bee3fd (patch) | |
tree | 110ee4c18a92828e8ed80fea6f6dfdf8aaf7c712 /src | |
parent | 6a1cd49f753ee946599266d0265afdd9ba20e68e (diff) | |
parent | b1e413857618caed22d882da06d38bde79592d02 (diff) | |
download | gnunet-99603b4ebf07ea30130514f9b8770d22f2bee3fd.tar.gz gnunet-99603b4ebf07ea30130514f9b8770d22f2bee3fd.zip |
Merge branch 'refactoring-scheduler' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src')
-rw-r--r-- | src/util/scheduler.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 7cd42dcea..68143d051 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -810,6 +810,7 @@ GNUNET_SCHEDULER_cancel (struct GNUNET_SCHEDULER_Task *task) | |||
810 | scheduler_driver->set_wakeup (scheduler_driver->cls, | 810 | scheduler_driver->set_wakeup (scheduler_driver->cls, |
811 | get_timeout ()); | 811 | get_timeout ()); |
812 | } | 812 | } |
813 | //TODO check if this is redundant | ||
813 | if (task == pending_timeout_last) | 814 | if (task == pending_timeout_last) |
814 | pending_timeout_last = NULL; | 815 | pending_timeout_last = NULL; |
815 | } | 816 | } |
@@ -1665,6 +1666,9 @@ GNUNET_SCHEDULER_run_from_driver (struct GNUNET_SCHEDULER_Handle *sh) | |||
1665 | pos); | 1666 | pos); |
1666 | if (pending_timeout_last == pos) | 1667 | if (pending_timeout_last == pos) |
1667 | pending_timeout_last = NULL; | 1668 | pending_timeout_last = NULL; |
1669 | else | ||
1670 | scheduler_driver->set_wakeup(scheduler_driver->cls,pending_timeout_head->timeout); | ||
1671 | |||
1668 | queue_ready_task (pos); | 1672 | queue_ready_task (pos); |
1669 | } | 1673 | } |
1670 | 1674 | ||