From 966d60d5c828f4b3645ad82fae5f5fb2d4aa9470 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Tue, 5 Jan 2016 18:41:29 -0600 Subject: [PATCH] Improved error message when server connection is reset --- src/com/projectswg/ServerConnection.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/com/projectswg/ServerConnection.java b/src/com/projectswg/ServerConnection.java index 3589c55..bcd4d8d 100644 --- a/src/com/projectswg/ServerConnection.java +++ b/src/com/projectswg/ServerConnection.java @@ -148,7 +148,10 @@ public class ServerConnection { process(buffer, n); } catch (IOException e) { if (connected) { - e.printStackTrace(); + if (e.getMessage().equals("Connection reset")) + System.err.println("Connection reset"); + else + e.printStackTrace(); disconnect(); } } catch (Exception e) {