mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 05:01:26 -07:00
fix(plugin): allow cold-start overlay launch without running process
This commit is contained in:
1 parent
f33b5e1e98
commit
a07d5ecdb3
13 files changed
+795
-132
No files matched your search
+2
-1
@@ -1526,7 +1526,8 @@ end
|
||||
|
||||
local function start_overlay(overrides)
|
||||
local socket_ready, reason = is_subminer_ipc_ready()
|
||||
if not socket_ready then
|
||||
local process_not_running = reason == "SubMiner process not running"
|
||||
if not socket_ready and not process_not_running then
|
||||
subminer_log("warn", "process", "Refusing to start overlay: " .. tostring(reason))
|
||||
show_osd("SubMiner IPC not set up. Launch mpv with --input-ipc-server=/tmp/subminer-socket")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user