Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 9af9f79

Browse files
fix: Move task completion callback
1 parent 52bd0e5 commit 9af9f79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/patcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ export async function installMod(callback, customPathToYMAsar=undefined) {
113113
try {
114114
launchYandexMusic();
115115
setTimeout(()=>callback(2, 'Yandex Music launched.'), 500);
116-
setTimeout(()=>callback(0, 'Task finished.'), 2000);
117116
} catch (e) {
118117
callback(-1, 'Failed to launch Yandex Music: ' + e.message);
119118
}
120119
}
120+
setTimeout(()=>callback(0, 'Task finished.'), 2000);
121121

122122
}
123123

0 commit comments

Comments
 (0)