diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-01-27 01:07:58 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-01-27 01:07:58 +0100 |
commit | 3db0825fdc964032a7c6ee17ccb7dedbbcfb208b (patch) | |
tree | 0fe0221028f6f127a0135f15898c38efe6257b51 /src/cadet/cadet_api_list_peers.c | |
parent | 65b339b7ce68fcbaec9df6f66e8ed45e60b39ce1 (diff) | |
download | gnunet-3db0825fdc964032a7c6ee17ccb7dedbbcfb208b.tar.gz gnunet-3db0825fdc964032a7c6ee17ccb7dedbbcfb208b.zip |
more work on #5385
Diffstat (limited to 'src/cadet/cadet_api_list_peers.c')
-rw-r--r-- | src/cadet/cadet_api_list_peers.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) | |||
177 | struct GNUNET_MessageHeader *msg; | 177 | struct GNUNET_MessageHeader *msg; |
178 | struct GNUNET_MQ_Envelope *env; | 178 | struct GNUNET_MQ_Envelope *env; |
179 | 179 | ||
180 | pl->reconnect_task = NULL; | ||
180 | pl->mq = GNUNET_CLIENT_connect (pl->cfg, | 181 | pl->mq = GNUNET_CLIENT_connect (pl->cfg, |
181 | "cadet", | 182 | "cadet", |
182 | handlers, | 183 | handlers, |
183 | &error_handler, | 184 | &error_handler, |
184 | pl); | 185 | pl); |
186 | if (NULL == pl->mq) | ||
187 | return; | ||
185 | env = GNUNET_MQ_msg (msg, | 188 | env = GNUNET_MQ_msg (msg, |
186 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS); | 189 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS); |
187 | GNUNET_MQ_send (pl->mq, | 190 | GNUNET_MQ_send (pl->mq, |
@@ -194,7 +197,7 @@ reconnect (void *cls) | |||
194 | * The callback will be called for every peer known to the service. | 197 | * The callback will be called for every peer known to the service. |
195 | * Only one info request (of any kind) can be active at once. | 198 | * Only one info request (of any kind) can be active at once. |
196 | * | 199 | * |
197 | * @param h Handle to the cadet peer. | 200 | * @param cfg configuration to use |
198 | * @param callback Function to call with the requested data. | 201 | * @param callback Function to call with the requested data. |
199 | * @param callback_cls Closure for @c callback. | 202 | * @param callback_cls Closure for @c callback. |
200 | * @return NULL on error | 203 | * @return NULL on error |