mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
small fixes
This commit is contained in:
@@ -41,8 +41,14 @@ export function createInitializeOverlayRuntimeHandler(deps: {
|
||||
}) {
|
||||
return (): void => {
|
||||
if (deps.isOverlayRuntimeInitialized()) return;
|
||||
deps.initializeOverlayRuntimeCore(deps.buildOptions());
|
||||
const options = deps.buildOptions();
|
||||
deps.setOverlayRuntimeInitialized(true);
|
||||
try {
|
||||
deps.initializeOverlayRuntimeCore(options);
|
||||
} catch (error) {
|
||||
deps.setOverlayRuntimeInitialized(false);
|
||||
throw error;
|
||||
}
|
||||
deps.startBackgroundWarmups();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user