From 7dd69dfb57154d77144bc46a393b6b95ea0f911e Mon Sep 17 00:00:00 2001 From: lurchi Date: Tue, 16 Jan 2018 17:27:33 +0100 Subject: [PATCH] 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. --- src/util/scheduler.c | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.25.1