From 5eeee1a62c6a586a543db4d6cb6e0e218fd31418 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Fri, 5 Feb 2016 19:21:47 -0600 Subject: [PATCH] Added additional network error that's possible --- src/com/projectswg/ServerConnection.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/projectswg/ServerConnection.java b/src/com/projectswg/ServerConnection.java index e9fc647..08ac5a0 100644 --- a/src/com/projectswg/ServerConnection.java +++ b/src/com/projectswg/ServerConnection.java @@ -326,6 +326,8 @@ public class ServerConnection { return ConnectionStatus.ADDR_IN_USE; if (message.toLowerCase(Locale.US).contains("socket closed")) return ConnectionStatus.DISCONNECTED; + if (message.toLowerCase(Locale.US).contains("no route to host")) + return ConnectionStatus.NO_ROUTE_TO_HOST; System.err.println("Unknown reason: " + message); return ConnectionStatus.DISCONNECTED; } @@ -342,6 +344,7 @@ public class ServerConnection { CONNECTION_REFUSED, ADDR_IN_USE, OTHER_SIDE_TERMINATED, + NO_ROUTE_TO_HOST, DISCONNECTED }