I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 18d42ec9 authored by sponge's avatar sponge
Browse files

A few fixes to make BOB a little more quiet,

there is possibly a little left, though.
parent 872d2c48
No related branches found
No related tags found
No related merge requests found
...@@ -89,18 +89,15 @@ public class I2PtoTCP implements Runnable { ...@@ -89,18 +89,15 @@ public class I2PtoTCP implements Runnable {
} }
} }
} catch(UnknownHostException ex) { } catch(Exception e) {
// OOPS!
} catch(IOException ex) {
// OOPS!
} }
try { try {
I2P.close(); I2P.close();
} catch(IOException ex) { } catch(Exception e) {
} }
try { try {
sock.close(); sock.close();
} catch(IOException ex) { } catch(Exception e) {
} }
} }
} }
...@@ -33,7 +33,6 @@ import java.net.Socket; ...@@ -33,7 +33,6 @@ import java.net.Socket;
import net.i2p.I2PException; import net.i2p.I2PException;
import net.i2p.client.streaming.I2PSocket; import net.i2p.client.streaming.I2PSocket;
import net.i2p.client.streaming.I2PSocketManager; import net.i2p.client.streaming.I2PSocketManager;
import net.i2p.data.DataFormatException;
import net.i2p.data.Destination; import net.i2p.data.Destination;
import net.i2p.i2ptunnel.I2PTunnel; import net.i2p.i2ptunnel.I2PTunnel;
...@@ -56,9 +55,9 @@ public class TCPtoI2P implements Runnable { ...@@ -56,9 +55,9 @@ public class TCPtoI2P implements Runnable {
* *
* @param in * @param in
* @return line of text as a String * @return line of text as a String
* @throws java.io.IOException * @throws Exception
*/ */
public static String Lread(InputStream in) throws IOException { public static String Lread(InputStream in) throws Exception {
String S; String S;
int b; int b;
char c; char c;
...@@ -163,23 +162,19 @@ public class TCPtoI2P implements Runnable { ...@@ -163,23 +162,19 @@ public class TCPtoI2P implements Runnable {
Emsg("ERROR " + e.toString(), out); Emsg("ERROR " + e.toString(), out);
} }
} catch(DataFormatException e) { } catch(Exception e) {
Emsg("ERROR " + e.toString(), out);
} catch(NullPointerException e) {
Emsg("ERROR " + e.toString(), out); Emsg("ERROR " + e.toString(), out);
} }
} catch(IOException ioe) { } catch(IOException ioe) {
} }
try { try {
I2P.close(); I2P.close();
} catch(IOException ex) { } catch(Exception e) {
} catch(NullPointerException e) {
} }
try { try {
sock.close(); sock.close();
} catch(IOException ex) { } catch(Exception e) {
} catch(NullPointerException e) {
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment