mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-03 16:08:02 +00:00
b8b4f9e437
aria2c was spawned without a readiness check, causing the frontend to always see 'error sending request for url' even when the process was merely starting slowly. If spawn or sidecar creation failed, the error was only logged and never surfaced to the user. - Add 5-second readiness loop (poll aria2.getVersion every 100ms) after spawning aria2c during app setup, blocking setup until RPC is available or timeout expires. - Store spawn/readiness errors in Aria2DaemonGuard.startup_error and check it in test_aria2c before attempting RPC, so the real error reason reaches the frontend. - Keep child process lifecycle in Aria2DaemonGuard (killed on Drop).