From 88a45d8003deb6804f90313e994fac1bf8eefce6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 15 Jun 2025 12:24:03 +0200 Subject: fix bug where too many tasks where assigned --- scripts/ytdlp_download.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/ytdlp_download.ts') diff --git a/scripts/ytdlp_download.ts b/scripts/ytdlp_download.ts index bc9afd7..b6be66d 100644 --- a/scripts/ytdlp_download.ts +++ b/scripts/ytdlp_download.ts @@ -110,7 +110,9 @@ ws.onmessage = async ev => { if (p.t == "config") config = p.config if (p.t == "error") console.error(`error: ${p.message}`); if (p.t == "work") { + console.log("work"); await do_download(p.key, p.data) + console.log("accept"); ws.send(JSON.stringify({ t: "accept" })) } } -- cgit v1.2.3-70-g09d2