From 6aca750d325ff4058613d490d3e42e784d624dd3 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Tue, 30 Apr 2019 23:06:28 +0200 Subject: [PATCH] REST/GNS: timeout handle 2nd try --- src/gns/plugin_rest_gns.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c index 888688798..7f8d6fccf 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/gns/plugin_rest_gns.c @@ -209,6 +209,15 @@ do_error (void *cls) } +static void +do_timeout (void *cls) +{ + struct RequestHandle *handle = cls; + handle->timeout_task = NULL; + do_error (handle); +} + + /** * Iterator called on obtained result for a GNS lookup. * @@ -402,7 +411,7 @@ rest_process_request(struct GNUNET_REST_RequestHandle *rest_handle, handle->timeout_task = GNUNET_SCHEDULER_add_delayed (handle->timeout, - &do_error, + &do_timeout, handle); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n"); -- 2.25.1