summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht.c b/src/dht.c
index 97c54ea..63adcdc 100644
--- a/src/dht.c
+++ b/src/dht.c
@@ -2335,7 +2335,7 @@ void periodic (struct dht * d) {
RTGP(buckets);
RTGP(buckets6);
}
- while (sent < 1) {
+ if (sent < 1) {
struct bucket * b = d->buckets;
while (sent < 1 && b) {
n = b->nodes;