From 0c309b1bda4c5b114600943970d37b9cadc16f1b Mon Sep 17 00:00:00 2001 From: JKetelaar Date: Fri, 9 Jan 2015 12:08:16 +0100 Subject: [PATCH] Catched exception where an anti-virus would disable the connection --- .../src/org/parabot/core/parsers/servers/PublicServers.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parabotv2/src/org/parabot/core/parsers/servers/PublicServers.java b/parabotv2/src/org/parabot/core/parsers/servers/PublicServers.java index 6f75451..ead4bdc 100644 --- a/parabotv2/src/org/parabot/core/parsers/servers/PublicServers.java +++ b/parabotv2/src/org/parabot/core/parsers/servers/PublicServers.java @@ -6,9 +6,11 @@ import org.parabot.core.Configuration; import org.parabot.core.desc.ServerDescription; import org.parabot.core.forum.AccountManager; import org.parabot.core.forum.AccountManagerAccess; +import org.parabot.core.ui.utils.UILog; import org.parabot.environment.api.utils.WebUtil; import org.parabot.environment.servers.executers.PublicServerExecuter; +import javax.swing.*; import java.io.BufferedReader; import java.net.URL; @@ -53,6 +55,7 @@ public class PublicServers extends ServerParser { br.close(); } catch (Exception e) { + UILog.log("Error", "Failed to load public servers. Either disable your anti-virus or request support on the forums.", JOptionPane.ERROR_MESSAGE); e.printStackTrace(); } }