I2PTunnel: Fix exception message choice that was backwards

for router/non-router context
This commit is contained in:
zzz
2016-01-27 16:27:26 +00:00
parent c6136b5cdb
commit 3ad1db8d74

View File

@ -471,10 +471,10 @@ public abstract class I2PTunnelClientBase extends I2PTunnelTask implements Runna
portNum = "7654"; portNum = "7654";
String msg; String msg;
if (getTunnel().getContext().isRouterContext()) if (getTunnel().getContext().isRouterContext())
msg = "Unable to build tunnels for the client";
else
msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum + msg = "Unable to connect to the router at " + getTunnel().host + ':' + portNum +
" and build tunnels for the client"; " and build tunnels for the client";
else
msg = "Unable to build tunnels for the client";
if (++retries < MAX_RETRIES) { if (++retries < MAX_RETRIES) {
if (log != null) if (log != null)
log.log(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds"); log.log(msg + ", retrying in " + (RETRY_DELAY / 1000) + " seconds");