From: Schanzenbach, Martin Date: Tue, 30 Apr 2019 20:46:23 +0000 (+0200) Subject: REST/GNS: timeout handle X-Git-Tag: v0.11.4~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9bb74504227de02e04600af6ddfdf7ff8857515f;p=oweals%2Fgnunet.git REST/GNS: timeout handle --- diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c index 21638fdf6..888688798 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/gns/plugin_rest_gns.c @@ -190,6 +190,9 @@ do_error (void *cls) json_t *json_error = json_object(); char *response; + if (NULL != handle->timeout_task) + GNUNET_SCHEDULER_cancel (handle->timeout_task); + handle->timeout_task = NULL; if (NULL == handle->emsg) handle->emsg = GNUNET_strdup(GNUNET_REST_GNS_ERROR_UNKNOWN);