fix: ensure nchan doesn't block server loading

This commit is contained in:
Alexis Tyler
2021-01-29 16:56:31 +10:30
parent e7de0fd1e8
commit 5ce9d44c52
2 changed files with 5 additions and 6 deletions

View File

@@ -201,11 +201,6 @@ const load = async (): Promise<void> => {
await loadPlugins();
await loadWatchers();
await loadApiKeys();
// Load nchan
if (process.env.NCHAN !== 'disable') {
await loadNchan();
}
};
/**
@@ -247,5 +242,6 @@ export const loadServer = async (name: string, server: typeof Server): Promise<v
export const core = {
loaders,
load,
loadServer
loadServer,
loadNchan
};

View File

@@ -34,6 +34,9 @@ am(async () => {
// Load server
await loadServer('unraid-api', server);
// Load nchan
await core.loadNchan();
}, async (error: NodeJS.ErrnoException) => {
// Send error to server for debugging
Sentry.captureException(error);