From 7e9e4e320d6eee5bf6afd876b282609712cb72db Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 Jan 2017 00:46:03 +0100 Subject: use new SCHEDULER_add_at API where applicable --- src/topology/gnunet-daemon-topology.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/topology/gnunet-daemon-topology.c') diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index d48f07e71..067ebce23 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c @@ -534,10 +534,10 @@ schedule_next_hello (void *cls) 1, GNUNET_NO); /* prepare to send the next one */ - if (NULL != pl->hello_delay_task) - GNUNET_SCHEDULER_cancel (pl->hello_delay_task); pl->next_hello_allowed = GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_FREQUENCY); + if (NULL != pl->hello_delay_task) + GNUNET_SCHEDULER_cancel (pl->hello_delay_task); pl->hello_delay_task = GNUNET_SCHEDULER_add_now (&schedule_next_hello, pl); @@ -1022,7 +1022,7 @@ check_hello (void *cls, const struct GNUNET_HELLO_Message *message) { struct GNUNET_PeerIdentity pid; - + if (GNUNET_OK != GNUNET_HELLO_get_id (message, &pid)) -- cgit v1.2.3