From ac0e288cd83870a03a33065a044b7a9fc365db16 Mon Sep 17 00:00:00 2001 From: NimBold Date: Thu, 27 Aug 2026 20:01:13 +0330 Subject: [PATCH] test(startup): isolate Aria2 WebSocket crash path (#37) - Issue #37: add a smoke-only switch that stops the Aria2 WebSocket loop.\n- Keep the daemon and poller paths active for a focused delayed-startup comparison.\n\nRefs #37. --- scripts/smoke-packaged-app.js | 3 ++- src-tauri/src/lib.rs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/smoke-packaged-app.js b/scripts/smoke-packaged-app.js index 3d48b3f..137e4fa 100755 --- a/scripts/smoke-packaged-app.js +++ b/scripts/smoke-packaged-app.js @@ -29,7 +29,8 @@ const child = spawn(executable, [], { detached: process.platform !== 'win32', env: { ...process.env, - FIRELINK_SMOKE_TEST: '1', + FIRELINK_SMOKE_TEST: '1', + FIRELINK_DISABLE_ARIA2_WEBSOCKET: '1', WEBKIT_DISABLE_COMPOSITING_MODE: '1', GDK_BACKEND: 'x11', }, diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 9edbd8f..3384402 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -18854,6 +18854,9 @@ pub fn run() { } } + if std::env::var_os("FIRELINK_DISABLE_ARIA2_WEBSOCKET").is_some() { + return; + } let mut ws_retries = 0; loop { if ws_retries == 10 {