Printing socket exception to console
This commit is contained in:
parent
028399a3e6
commit
6c3ceaae36
@ -140,6 +140,8 @@ public class SocketProcessor implements Runnable {
|
|||||||
fullMessages.clear();
|
fullMessages.clear();
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
System.err.println("An exception occurred while reading from a socket. Cancelling socket...");
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
} finally {
|
} finally {
|
||||||
if (cancelled || socket.endOfStreamReached) {
|
if (cancelled || socket.endOfStreamReached) {
|
||||||
|
Reference in New Issue
Block a user