diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-30 22:46:23 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-30 22:46:23 +0200 |
commit | 9bb74504227de02e04600af6ddfdf7ff8857515f (patch) | |
tree | e6829b39f0c66c8023da9f851d39dcc58712aa3b /src/gns/plugin_rest_gns.c | |
parent | 8719f4fcc1685a320e648166cf6720c3e33f0434 (diff) | |
download | gnunet-9bb74504227de02e04600af6ddfdf7ff8857515f.tar.gz gnunet-9bb74504227de02e04600af6ddfdf7ff8857515f.zip |
REST/GNS: timeout handle
Diffstat (limited to 'src/gns/plugin_rest_gns.c')
-rw-r--r-- | src/gns/plugin_rest_gns.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
190 | json_t *json_error = json_object(); | 190 | json_t *json_error = json_object(); |
191 | char *response; | 191 | char *response; |
192 | 192 | ||
193 | if (NULL != handle->timeout_task) | ||
194 | GNUNET_SCHEDULER_cancel (handle->timeout_task); | ||
195 | handle->timeout_task = NULL; | ||
193 | if (NULL == handle->emsg) | 196 | if (NULL == handle->emsg) |
194 | handle->emsg = GNUNET_strdup(GNUNET_REST_GNS_ERROR_UNKNOWN); | 197 | handle->emsg = GNUNET_strdup(GNUNET_REST_GNS_ERROR_UNKNOWN); |
195 | 198 | ||