From 9bb74504227de02e04600af6ddfdf7ff8857515f Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Tue, 30 Apr 2019 22:46:23 +0200 Subject: [PATCH] REST/GNS: timeout handle --- src/gns/plugin_rest_gns.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1