forked from I2P_Developers/i2p.i2p
i2psnark: Don't disconnect seeds immediately if comments enabled (ticket #2288)
Implement variable timeout Hardcode handshake bytes Log tweaks
This commit is contained in:
@@ -96,7 +96,7 @@ class PeerCheckerTask implements Runnable
|
||||
continue;
|
||||
}
|
||||
|
||||
if (peer.getInactiveTime() > PeerCoordinator.MAX_INACTIVE) {
|
||||
if (peer.getInactiveTime() > peer.getMaxInactiveTime()) {
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Disconnecting peer idle " +
|
||||
DataHelper.formatDuration(peer.getInactiveTime()) + ": " + peer);
|
||||
|
||||
Reference in New Issue
Block a user