[FIX] Теперь GC не съест Updater.

Signed-off-by: zaxar163 <zahar.vcherachny@yandex.ru>
This commit is contained in:
zaxar163 2019-01-21 16:06:13 +03:00
parent 237a2a2f92
commit 9e4df1d196
2 changed files with 4 additions and 2 deletions

View file

@ -288,6 +288,8 @@ public static void main(String... args) throws Throwable {
public volatile Map<String, SignedObjectHolder<HashedDir>> updatesDirMap; public volatile Map<String, SignedObjectHolder<HashedDir>> updatesDirMap;
public final Updater updater;
public static Gson gson; public static Gson gson;
public static GsonBuilder gsonBuilder; public static GsonBuilder gsonBuilder;
@ -439,7 +441,7 @@ public LaunchServer(Path dir, String[] args) throws IOException, InvalidKeySpecE
// post init modules // post init modules
modulesManager.postInitModules(); modulesManager.postInitModules();
// start updater // start updater
new Updater(this); this.updater = new Updater(this);
} }
public static void initGson() { public static void initGson() {

@ -1 +1 @@
Subproject commit 38e11640ce4a4ed3e9745718db02a888770a22bb Subproject commit 53106ee20700cb73ad65fd7dddf69b0d0b766f4c