diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-04-18 16:22:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-04-18 16:25:41 +0200 |
commit | 3f1ddc993a92cd2d6d47cd7c480a01bb27247df5 (patch) | |
tree | ddb1d10934b9d1a113a2b28f91edaada4ddbbebd /src/dns/dnsstub.c | |
parent | cd32d04fb670e6feebe6c737e17e13675ac744b3 (diff) |
stop retrying after we succeed
Diffstat (limited to 'src/dns/dnsstub.c')
-rw-r--r-- | src/dns/dnsstub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dns/dnsstub.c b/src/dns/dnsstub.c index f9dc7a6966..6aa2d7b8fe 100644 --- a/src/dns/dnsstub.c +++ b/src/dns/dnsstub.c @@ -621,6 +621,11 @@ void GNUNET_DNSSTUB_resolve_cancel (struct GNUNET_DNSSTUB_RequestSocket *rs) { rs->rc = NULL; + if (NULL != rs->retry_task) + { + GNUNET_SCHEDULER_cancel (rs->retry_task); + rs->retry_task = NULL; + } } |