From 93a6bbfc58ec48c774ecf475ec7e58184504bbc4 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 8 Jan 2019 15:59:14 +0100 Subject: 5136: fix multiple invocations of /keys callback. Basically, we allow such a callback to be invoked only once. Subsequent invocations (due to keys updates / whatever) cause the callback to simply return in a do-nothing fashion. Also: adding a /wire CMD - that uses /keys - after serilized keys have been loaded. --- src/exchange-lib/exchange_api_wire.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/exchange-lib/exchange_api_wire.c') diff --git a/src/exchange-lib/exchange_api_wire.c b/src/exchange-lib/exchange_api_wire.c index c57ad6d9..0d4644db 100644 --- a/src/exchange-lib/exchange_api_wire.c +++ b/src/exchange-lib/exchange_api_wire.c @@ -213,6 +213,7 @@ handle_wire_finished (void *cls, enum TALER_ErrorCode ec; const json_t *j = response; + TALER_LOG_DEBUG ("Checking raw /wire response\n"); wh->job = NULL; ec = TALER_EC_NONE; switch (response_code) @@ -411,10 +412,10 @@ TALER_EXCHANGE_wire (struct TALER_EXCHANGE_Handle *exchange, eh = TEL_curl_easy_get (wh->url); ctx = TEAH_handle_to_context (exchange); wh->job = GNUNET_CURL_job_add (ctx, - eh, - GNUNET_YES, - &handle_wire_finished, - wh); + eh, + GNUNET_YES, + &handle_wire_finished, + wh); return wh; } -- cgit v1.2.3