From 3db0825fdc964032a7c6ee17ccb7dedbbcfb208b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Jan 2019 01:07:58 +0100 Subject: more work on #5385 --- src/cadet/cadet_api_list_peers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cadet/cadet_api_list_peers.c') diff --git a/src/cadet/cadet_api_list_peers.c b/src/cadet/cadet_api_list_peers.c index d53bcf65d..cc6948a36 100644 --- a/src/cadet/cadet_api_list_peers.c +++ b/src/cadet/cadet_api_list_peers.c @@ -177,11 +177,14 @@ reconnect (void *cls) struct GNUNET_MessageHeader *msg; struct GNUNET_MQ_Envelope *env; + pl->reconnect_task = NULL; pl->mq = GNUNET_CLIENT_connect (pl->cfg, "cadet", handlers, &error_handler, pl); + if (NULL == pl->mq) + return; env = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS); GNUNET_MQ_send (pl->mq, @@ -194,7 +197,7 @@ reconnect (void *cls) * The callback will be called for every peer known to the service. * Only one info request (of any kind) can be active at once. * - * @param h Handle to the cadet peer. + * @param cfg configuration to use * @param callback Function to call with the requested data. * @param callback_cls Closure for @c callback. * @return NULL on error -- cgit v1.2.3