Skip to content

Commit

Permalink
fix: Incorrect startup order
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed May 9, 2024
1 parent 9105692 commit 367d7ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tosu/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -21,8 +23,6 @@ import { InstanceManager } from './objects/instanceManager/instanceManager';
await checkUpdates();
}

watchConfigFile({ httpServer, initial: true });

wLogger.info('Searching for osu!');

httpServer.start();
Expand Down

0 comments on commit 367d7ba

Please sign in to comment.