fix div by 0 in hello

Caused by: java.lang.ArithmeticException: / by zero
	at hello.respond(hello.java:159)
pull/1/head
reger 10 years ago
parent 17808898c6
commit 682dd94925

@ -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
}
}
}

Loading…
Cancel
Save