A few fixes to make BOB a little more quiet,
there is possibly a little left, though.
This commit is contained in:
@ -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;
|
|||||||
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 {
|
|||||||
*
|
*
|
||||||
* @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 {
|
|||||||
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) {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user