i2ptunnel: Don't delay after ConnectException if stopped

(fixes zzzot stop delay)
This commit is contained in:
zzz
2019-11-13 15:37:16 +00:00
parent a854ccee69
commit cecf255706

View File

@ -634,9 +634,11 @@ public class I2PTunnelServer extends I2PTunnelTask implements Runnable {
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
break;
} catch (ConnectException ce) {
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
if (!open)
break;
if (_log.shouldLog(Log.ERROR))
_log.error("Error accepting", ce);
if (i2ps != null) try { i2ps.close(); } catch (IOException ioe) {}
try {
Thread.sleep(2*60*1000);
} catch (InterruptedException ie) {}