From 7890a308739d2e4714ec5b9f1371da377c59e6b6 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 19 Nov 2013 13:34:29 +0000 Subject: [PATCH] notify only once --- src/ats/libgnunet_plugin_ats_proportional.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ats/libgnunet_plugin_ats_proportional.c b/src/ats/libgnunet_plugin_ats_proportional.c index 6118329b6..ab259c118 100644 --- a/src/ats/libgnunet_plugin_ats_proportional.c +++ b/src/ats/libgnunet_plugin_ats_proportional.c @@ -879,16 +879,16 @@ distribute_bandwidth_in_network (struct GAS_PROPORTIONAL_Handle *s, if (NULL != s->env->info_cb) s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_STOP, GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); + if (NULL != s->env->info_cb) + s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, + GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); for (i = 0; i < s->network_count; i++) { - if (NULL != s->env->info_cb) - s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_START, - GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); propagate_bandwidth(s, &s->network_entries[i], address_except); - if (NULL != s->env->info_cb) - s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, - GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); } + if (NULL != s->env->info_cb) + s->env->info_cb(s->env->info_cb_cls, GAS_OP_SOLVE_UPDATE_NOTIFICATION_STOP, + GAS_STAT_SUCCESS, GAS_INFO_PROP_ALL); } } -- 2.25.1