From 682dd94925938c66845e3b3be890c80f8faf49d3 Mon Sep 17 00:00:00 2001 From: reger Date: Wed, 24 Dec 2014 00:04:35 +0100 Subject: [PATCH] fix div by 0 in hello Caused by: java.lang.ArithmeticException: / by zero at hello.respond(hello.java:159) --- htroot/yacy/hello.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java index 2e3906490..6c5becde0 100644 --- a/htroot/yacy/hello.java +++ b/htroot/yacy/hello.java @@ -169,7 +169,7 @@ public final class hello { time_backping = System.currentTimeMillis() - time; backping_method = "reportedip=" + reportedip; if (callback[0] >= 0) { success = true; break; } - if (callbackRemain-- <= 0) break; // no more tries left / restrict to a limited number of ips + if (--callbackRemain <= 0) break; // no more tries left / restrict to a limited number of ips } } }