fix: make getNetworkModuleStatus not be async so we don't need to wait to get the async function if we have a callback

This commit is contained in:
Derrick Hammer 2023-07-27 10:17:35 -04:00
parent 490291f1e0
commit a72651e924
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -23,12 +23,12 @@ export const connectModule = kernelEnv
export const log = kernelEnv ? logKernel : logModule;
export const logErr = kernelEnv ? logErrKernel : logErrModule;
export async function getNetworkModuleStatus(
export function getNetworkModuleStatus(
callback?: any,
module?: string,
// @ts-ignore
CM: connectModuleBound = connectModule.bind(null, module),
): Promise<void | (() => Promise<void>)> {
): Promise<void> | (() => Promise<void>) {
let recvUpdate = (data) => {
callback?.(data);
};