diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-28 16:15:25 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-28 16:15:25 +0200 |
commit | 3515b8cb39b2c240a6d4af298d83862fb7a502d0 (patch) | |
tree | 01301314ea7183166a78bbc45b8b2c33392da98f /src/peerstore/peerstore_api.c | |
parent | b001bc189b7cb51aa8b41a2b9493530395e6a909 (diff) | |
download | gnunet-3515b8cb39b2c240a6d4af298d83862fb7a502d0.tar.gz gnunet-3515b8cb39b2c240a6d4af298d83862fb7a502d0.zip |
-fix peerstore api and tests
Diffstat (limited to 'src/peerstore/peerstore_api.c')
-rw-r--r-- | src/peerstore/peerstore_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c index db5aee0d5..196d44faa 100644 --- a/src/peerstore/peerstore_api.c +++ b/src/peerstore/peerstore_api.c | |||
@@ -823,7 +823,12 @@ reconnect (void *cls) | |||
823 | &handle_client_error, | 823 | &handle_client_error, |
824 | h); | 824 | h); |
825 | if (NULL == h->mq) | 825 | if (NULL == h->mq) |
826 | { | ||
827 | h->reconnect_task = | ||
828 | GNUNET_SCHEDULER_add_delayed (h->reconnect_delay, &reconnect, h); | ||
829 | h->reconnect_delay = GNUNET_TIME_STD_BACKOFF (h->reconnect_delay); | ||
826 | return; | 830 | return; |
831 | } | ||
827 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 832 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
828 | "Resending pending requests after reconnect.\n"); | 833 | "Resending pending requests after reconnect.\n"); |
829 | if (NULL != h->watches) | 834 | if (NULL != h->watches) |