From 3d0e15aaed68e32e283baa614810c38034e3a651 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sat, 2 Dec 2017 22:51:18 +0000 Subject: [PATCH] cleanup --- .../i2ptunnel/I2PTunnelHTTPClientRunner.java | 33 ++++--------------- 1 file changed, 6 insertions(+), 27 deletions(-) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientRunner.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientRunner.java index 656b2c0f96..e6ae0ecab5 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientRunner.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClientRunner.java @@ -10,7 +10,6 @@ import java.net.Socket; import java.util.List; import net.i2p.client.streaming.I2PSocket; -import net.i2p.util.Log; /** * Override the response with a stream filtering the HTTP headers @@ -52,42 +51,22 @@ public class I2PTunnelHTTPClientRunner extends I2PTunnelRunner { Socket s, I2PSocket i2ps, Thread t1, Thread t2) throws InterruptedException { try { i2pin.close(); - } catch (IOException ioe) { - // ignore - if (_log.shouldLog(Log.DEBUG)) - _log.debug("Unable to close the i2p socket input stream: " + i2pin, ioe); - } + } catch (IOException ioe) {} try { i2pout.close(); - } catch (IOException ioe) { - // ignore - if (_log.shouldLog(Log.DEBUG)) - _log.debug("Unable to close the i2p socket output stream: " + i2pout, ioe); - } + } catch (IOException ioe) {} try { in.close(); - } catch (IOException ioe) { - // ignore - if (_log.shouldLog(Log.DEBUG)) - _log.debug("Unable to close the browser input stream: " + in, ioe); - } + } catch (IOException ioe) {} try { out.close(); - } catch (IOException ioe) { - // ignore - if (_log.shouldLog(Log.DEBUG)) - _log.debug("Unable to close the browser output stream: " + out, ioe); - } + } catch (IOException ioe) {} try { i2ps.close(); - } catch (IOException ioe) { - // ignore - } + } catch (IOException ioe) {} try { s.close(); - } catch (IOException ioe) { - // ignore - } + } catch (IOException ioe) {} t1.join(30*1000); // t2 = fromI2P now run inline //t2.join(30*1000); -- GitLab