mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 06:22:45 -08:00
refactor(launcher): consolidate mpv socket readiness primitive
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user