From 0b047ad94f2b219415fd8398baf71a7beac32781 Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Thu, 3 Jan 2019 17:03:31 +0400 Subject: [PATCH] You can config updater feature. --- .../src/main/java/ru/gravit/launchserver/UpdateManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java b/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java index 15537653..2256eed8 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/UpdateManager.java @@ -25,10 +25,10 @@ public interface Callback { void post(LaunchServer lsrv); } - UpdateManager(LaunchServer lsrv) throws MalformedURLException { + UpdateManager(LaunchServer lsrv) { this.srv = lsrv; this.cl = new FCL(srv); - t = new Timer("Updater", true); + t = srv.config.criticalCallbacks ? new Timer("Updater", true) : null; if (srv.config.criticalCallbacks) t.schedule(this, 60000, 60000); String[] updU = lsrv.config.updateMirror.split(":"); updUH = updU[0];