Added Exception to read of server list that shows local buffered list.

This commit is contained in:
LevelX2 2015-04-05 09:43:45 +02:00
parent 18ce6a0305
commit 5c2189fdd7

View file

@ -54,6 +54,7 @@ import java.io.InputStreamReader;
import java.io.Writer;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.ArrayList;
@ -442,7 +443,7 @@ public class ConnectDialog extends MageDialog {
boolean URLNotFound = false;
try {
in = new BufferedReader(new InputStreamReader(serverListURL.openConnection(p).getInputStream()));
} catch (FileNotFoundException| UnknownHostException ex ) {
} catch (SocketTimeoutException |FileNotFoundException | UnknownHostException ex ) {
logger.warn("Could not read serverlist from: " + serverListURL.toString());
File f = new File("serverlist.txt");
if (f.exists() && !f.isDirectory()) {