pending_timeout_last = NULL;
else
scheduler_driver->set_wakeup (scheduler_driver->cls,
- pending_timeout_head->timeout);
+ get_timeout ());
}
+ //TODO check if this is redundant
if (task == pending_timeout_last)
pending_timeout_last = NULL;
}
GNUNET_CONTAINER_DLL_remove (pending_timeout_head,
pending_timeout_tail,
pos);
-
if (pending_timeout_last == pos)
pending_timeout_last = NULL;
+ else
+ scheduler_driver->set_wakeup(scheduler_driver->cls,pending_timeout_head->timeout);
+
queue_ready_task (pos);
}