diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
commit | 95f9076a2139f5fb042b944a0658b6cda2fa35db (patch) | |
tree | b0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/identity/plugin_rest_identity.c | |
parent | 7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff) | |
download | gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip |
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/identity/plugin_rest_identity.c')
-rw-r--r-- | src/identity/plugin_rest_identity.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/identity/plugin_rest_identity.c b/src/identity/plugin_rest_identity.c index 22ade6a0e..5bed8af55 100644 --- a/src/identity/plugin_rest_identity.c +++ b/src/identity/plugin_rest_identity.c | |||
@@ -257,9 +257,9 @@ cleanup_handle (struct RequestHandle *handle) | |||
257 | 257 | ||
258 | 258 | ||
259 | /** | 259 | /** |
260 | * Task run on shutdown. Cleans up everything. | 260 | * Task run on errors. Reports an error and cleans up everything. |
261 | * | 261 | * |
262 | * @param cls unused | 262 | * @param cls the `struct RequestHandle` |
263 | */ | 263 | */ |
264 | static void | 264 | static void |
265 | do_error (void *cls) | 265 | do_error (void *cls) |
@@ -273,7 +273,9 @@ do_error (void *cls) | |||
273 | &handle->emsg); | 273 | &handle->emsg); |
274 | 274 | ||
275 | resp = GNUNET_REST_create_json_response (json_error); | 275 | resp = GNUNET_REST_create_json_response (json_error); |
276 | handle->proc (handle->proc_cls, resp, MHD_HTTP_BAD_REQUEST); | 276 | handle->proc (handle->proc_cls, |
277 | resp, | ||
278 | MHD_HTTP_BAD_REQUEST); | ||
277 | cleanup_handle (handle); | 279 | cleanup_handle (handle); |
278 | GNUNET_free (json_error); | 280 | GNUNET_free (json_error); |
279 | } | 281 | } |