mirror of
https://bitbucket.org/projectswg/forwarder.git
synced 2026-08-27 16:56:24 -04:00
Improved error message when server connection is reset
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user