From: lurchi Date: Tue, 16 Jan 2018 16:27:33 +0000 (+0100) Subject: remove duplicate timeout check X-Git-Tag: v0.11.0pre66~248^2~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7dd69dfb57154d77144bc46a393b6b95ea0f911e;p=oweals%2Fgnunet.git remove duplicate timeout check There's no need of checking for timeouts in GNUNET_SCHEDULER_task_ready, as the check is done in GNUNET_SCHEDULER_run_from_driver. --- diff --git a/src/util/scheduler.c b/src/util/scheduler.c index e92405a96..6d4a8b354 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -1839,12 +1839,8 @@ GNUNET_SCHEDULER_task_ready (struct GNUNET_SCHEDULER_Task *task, struct GNUNET_SCHEDULER_FdInfo *fdi) { enum GNUNET_SCHEDULER_Reason reason; - struct GNUNET_TIME_Absolute now; - now = GNUNET_TIME_absolute_get (); reason = task->reason; - if (now.abs_value_us >= task->timeout.abs_value_us) - reason |= GNUNET_SCHEDULER_REASON_TIMEOUT; if ( (0 == (reason & GNUNET_SCHEDULER_REASON_READ_READY)) && (0 != (GNUNET_SCHEDULER_ET_IN & fdi->et)) ) reason |= GNUNET_SCHEDULER_REASON_READ_READY;