summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/dht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht.c b/src/dht.c
index 8a5c107..97c54ea 100644
--- a/src/dht.c
+++ b/src/dht.c
@@ -2316,7 +2316,7 @@ void periodic (struct dht * d) {
if (!n && !t->nodes->unanswered) // if unanswered, we already sent it
n = t->nodes;
}
- while (sent < 2) {
+ if (sent < 2) {
#define RTGP(buckets) {struct bucket * b = d->buckets; \
find(t->hash, &b, NULL); \
struct node * n = b->nodes; \