debug_mode也控制下载进程

This commit is contained in:
zqc
2026-02-28 12:17:47 +08:00
parent 1cbe95c91b
commit 61f315f6c7

View File

@@ -289,9 +289,11 @@ def start_service():
logger.info(f"[INFO] Started {downloader_count} HLS downloaders")
# DEBUG_MODE=True 时,主进程等待所有子进程
if DEBUG_MODE and processes:
if DEBUG_MODE:
all_processes = processes + downloader_processes
if all_processes:
logger.info("[DEBUG] Running in foreground mode, waiting for child processes...")
for process, name in processes:
for process, name in all_processes:
process.wait()
return started_count > 0