From 367d7ba6cc66e335e3243fc8cf55b020bb8457e7 Mon Sep 17 00:00:00 2001 From: ck <21735205+cyperdark@users.noreply.github.com> Date: Thu, 9 May 2024 16:26:19 +0300 Subject: [PATCH] fix: Incorrect startup order --- packages/tosu/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/tosu/src/index.ts b/packages/tosu/src/index.ts index 6d9c2a84..583bf921 100644 --- a/packages/tosu/src/index.ts +++ b/packages/tosu/src/index.ts @@ -10,6 +10,8 @@ import { InstanceManager } from './objects/instanceManager/instanceManager'; const instanceManager = new InstanceManager(); const httpServer = new Server({ instanceManager }); + watchConfigFile({ httpServer, initial: true }); + const { update } = argumetsParser(process.argv); const isDev = process.env.NODE_ENV !== 'development'; @@ -21,8 +23,6 @@ import { InstanceManager } from './objects/instanceManager/instanceManager'; await checkUpdates(); } - watchConfigFile({ httpServer, initial: true }); - wLogger.info('Searching for osu!'); httpServer.start();