diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index d4de79c9..8ca190ad 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -552,7 +552,7 @@ private void generateConfigIfNotExists() throws IOException { Config newConfig = new Config(); newConfig.mirrors = new String[]{"http://mirror.gravitlauncher.ml/"}; newConfig.updateMirror = "gravitlauncher.ml:7245"; - newConfig.criticalCallbacks = true; + newConfig.criticalCallbacks = false; newConfig.launch4j = new ExeConf(); newConfig.launch4j.copyright = "© GravitLauncher Team"; newConfig.launch4j.fileDesc = "GravitLauncher ".concat(Launcher.getVersion().getVersionString()); diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java b/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java index 2256eed8..08049d5d 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java @@ -27,7 +27,7 @@ public interface Callback { UpdateManager(LaunchServer lsrv) { this.srv = lsrv; - this.cl = new FCL(srv); + this.cl = srv.config.criticalCallbacks ? new FCL(srv) : null; t = srv.config.criticalCallbacks ? new Timer("Updater", true) : null; if (srv.config.criticalCallbacks) t.schedule(this, 60000, 60000); String[] updU = lsrv.config.updateMirror.split(":"); diff --git a/LaunchServer/src/main/resources/ru/gravit/launchserver/defaults/config.cfg b/LaunchServer/src/main/resources/ru/gravit/launchserver/defaults/config.cfg index fed060e0..0d93dcad 100644 --- a/LaunchServer/src/main/resources/ru/gravit/launchserver/defaults/config.cfg +++ b/LaunchServer/src/main/resources/ru/gravit/launchserver/defaults/config.cfg @@ -1,5 +1,5 @@ { - "port": 7245, + "port": 7240, "authHandler": { "type": "memory" }, @@ -47,7 +47,8 @@ "mirrors": [ "http://mirror.gravitlauncher.ml/" ], - "updateMirror": "gravitlauncher.ml:57977", + "updateMirror": "gravitlauncher.ml:7245", + "criticalCallbacks": false, "binaryName": "Launcher", "address": "localhost", "bindAddress": "0.0.0.0",