diff --git a/router/java/src/net/i2p/router/transport/tcp/ConnectionBuilder.java b/router/java/src/net/i2p/router/transport/tcp/ConnectionBuilder.java index a5addc81198d2e43ac4a4520ea40147b54783d9a..f5738dfa2a87407a9ceff2904f0b62aaa032a086 100644 --- a/router/java/src/net/i2p/router/transport/tcp/ConnectionBuilder.java +++ b/router/java/src/net/i2p/router/transport/tcp/ConnectionBuilder.java @@ -104,7 +104,8 @@ public class ConnectionBuilder { try { return doEstablishConnection(); } catch (Exception e) { // catchall in case the timeout gets us flat footed - fail("Error connecting", e); + if (_socket != null) + fail("Error connecting", e); return null; } }