From be8a9650a1488744610d17d9e8e47822b6945ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=E1=BA=BF=20H=C6=B0ng?= Date: Sat, 12 Apr 2025 21:46:26 +0700 Subject: [PATCH] fix: await keepAlive I forgot... --- src/proxy/reflect4.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proxy/reflect4.ts b/src/proxy/reflect4.ts index b575a2a..9f8386e 100644 --- a/src/proxy/reflect4.ts +++ b/src/proxy/reflect4.ts @@ -26,7 +26,7 @@ async function spawn(context: BrowserContext, targetUrl: string) { await targetInput.press("Enter"); // Keep-alive the page open for 5 minutes then refresh if (targetUrl.startsWith("https://www.twitch.tv/")) { - twitch.keepAlive(page, spawnId); + await twitch.keepAlive(page, spawnId); } else { logger.warn(`[${spawnId}] Unsupported URL: ${targetUrl}`); logger.warn(`[${spawnId}] Will try to keep alive, but no guarantees`);