mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 23:53:08 +00:00
NPE fix tweak
This commit is contained in:
1 parent
6d5678c14e
commit
09731ffd3a
1 file changed
+1
-1
@@ -616,7 +616,7 @@ class EventPumper implements Runnable {
|
||||
// Same stat as in processConnect()
|
||||
_context.statManager().addRateData("ntcp.connectFailedTimeoutIOE", 1);
|
||||
RouterIdentity rem = con.getRemotePeer();
|
||||
if (rem != null)
|
||||
if (rem != null && !con.isInbound())
|
||||
_transport.markUnreachable(rem.calculateHash());
|
||||
}
|
||||
con.close();
|
||||
|
||||
Reference in new issue
Block a user