Setting default value you 30 seconds

This commit is contained in:
Kyle Melton 2017-07-15 13:40:49 -07:00
parent f85c709757
commit 3e9f6bdd3d
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ public final class SubDataClient {
if (!socket.isClosed()) socket.close();
host.api.executeEvent(new SubNetworkDisconnectEvent());
log.info.println("The SubData Connection was closed");
int reconnectDelay = host.config.get().getSection("Settings").getSection("SubData").getInt("Reconnect delay");
int reconnectDelay = host.config.get().getSection("Settings").getSection("SubData").getInt("Reconnect delay", 30);
if (reconnect) {
log.info.println("Attempting to reconnect in 30 seconds");
Timer timer = new Timer();