aboutsummaryrefslogtreecommitdiff
path: root/src/nse/nse_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nse/nse_api.c')
-rw-r--r--src/nse/nse_api.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nse/nse_api.c b/src/nse/nse_api.c
index 9a44197..136f4b6 100644
--- a/src/nse/nse_api.c
+++ b/src/nse/nse_api.c
@@ -154,16 +154,7 @@ reschedule_connect (struct GNUNET_NSE_Handle *h)
h->reconnect_delay.rel_value);
h->reconnect_task =
GNUNET_SCHEDULER_add_delayed (h->reconnect_delay, &reconnect, h);
- if (h->reconnect_delay.rel_value == 0)
- {
- h->reconnect_delay = GNUNET_TIME_UNIT_MILLISECONDS;
- }
- else
- {
- h->reconnect_delay = GNUNET_TIME_relative_multiply (h->reconnect_delay, 2);
- h->reconnect_delay =
- GNUNET_TIME_relative_min (GNUNET_TIME_UNIT_SECONDS, h->reconnect_delay);
- }
+ h->reconnect_delay = GNUNET_TIME_STD_BACKOFF (h->reconnect_delay);
}