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

View File

@ -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) {