Fixed unresponsive behavior after cancelled socket #3

Merged
CyB3RC0nN0R merged 2 commits from b/cancelled_socket into master 2020-02-09 15:34:36 +01:00
Showing only changes of commit 6c3ceaae36 - Show all commits

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