Printing socket exception to console

This commit is contained in:
Kai S. K. Engelbart 2020-02-09 15:16:59 +01:00
parent 028399a3e6
commit 6c3ceaae36
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ public class SocketProcessor implements Runnable {
fullMessages.clear();
}
} catch (IOException e) {
e.printStackTrace();
System.err.println("An exception occurred while reading from a socket. Cancelling socket...");
cancelled = true;
} finally {
if (cancelled || socket.endOfStreamReached) {