From: Schanzenbach, Martin Date: Tue, 30 Apr 2019 21:06:28 +0000 (+0200) Subject: REST/GNS: timeout handle 2nd try X-Git-Tag: v0.11.4~46 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6aca750d325ff4058613d490d3e42e784d624dd3;p=oweals%2Fgnunet.git REST/GNS: timeout handle 2nd try --- 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");