summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-03-11 16:43:46 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-03-11 16:43:46 +0100
commit927ac3757076728742832ab5ee897db93b079dff (patch)
tree1a71297e69ea9da0aa23cc61d32dc56eff3a57c0 /src
parentinfloop fix (diff)
downloadtravnik-927ac3757076728742832ab5ee897db93b079dff.tar
travnik-927ac3757076728742832ab5ee897db93b079dff.tar.gz
travnik-927ac3757076728742832ab5ee897db93b079dff.tar.bz2
travnik-927ac3757076728742832ab5ee897db93b079dff.tar.lz
travnik-927ac3757076728742832ab5ee897db93b079dff.tar.xz
travnik-927ac3757076728742832ab5ee897db93b079dff.tar.zst
travnik-927ac3757076728742832ab5ee897db93b079dff.zip
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;