From 927ac3757076728742832ab5ee897db93b079dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 11 Mar 2023 16:43:46 +0100 Subject: infloop fix 2 --- src/dht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3