forked from I2P_Developers/i2p.i2p
pumper NPE fix
This commit is contained in:
@@ -615,7 +615,9 @@ class EventPumper implements Runnable {
|
||||
// although it could be a read failure during the DH handshake
|
||||
// Same stat as in processConnect()
|
||||
_context.statManager().addRateData("ntcp.connectFailedTimeoutIOE", 1);
|
||||
_transport.markUnreachable(con.getRemotePeer().calculateHash());
|
||||
RouterIdentity rem = con.getRemotePeer();
|
||||
if (rem != null)
|
||||
_transport.markUnreachable(rem.calculateHash());
|
||||
}
|
||||
con.close();
|
||||
} catch (NotYetConnectedException nyce) {
|
||||
|
Reference in New Issue
Block a user