mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Added Exception to read of server list that shows local buffered list.
This commit is contained in:
parent
18ce6a0305
commit
5c2189fdd7
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue