refactor(launcher): consolidate mpv socket readiness primitive

This commit is contained in:
2026-02-21 13:35:55 -08:00
parent a693cc1866
commit 2b77ab2406
7 changed files with 123 additions and 45 deletions

View File

@@ -19,7 +19,6 @@ import {
stopOverlay,
launchTexthookerOnly,
findAppBinary,
waitForSocket,
loadSubtitleIntoMpv,
runAppCommandWithInherit,
launchMpvIdleDetached,
@@ -361,7 +360,7 @@ async function main(): Promise<void> {
});
}
const ready = await waitForSocket(mpvSocketPath);
const ready = await waitForUnixSocketReady(mpvSocketPath, 10000);
const shouldStartOverlay = args.startOverlay || args.autoStartOverlay;
if (shouldStartOverlay) {
if (ready) {