compile fix

This commit is contained in:
zzz
2013-06-01 17:10:32 +00:00
parent 75261a0ce4
commit fc2734c484

View File

@ -167,10 +167,10 @@ class ConnectionAcceptor implements Runnable
continue;
}
int bad = _badCounter.count(socket.getPeerDestination().calculateHash());
if (count >= MAX_BAD) {
if (bad >= MAX_BAD) {
if (_log.shouldLog(Log.WARN))
_log.warn("Rejecting connection from " + socket.getPeerDestination().calculateHash() +
" after " + count + " failures, max is " + MAX_BAD);
" after " + bad + " failures, max is " + MAX_BAD);
try { socket.close(); } catch (IOException ioe) {}
continue;
}