stremio-shell-ng/src
Claude 46d152dfc5
fix: guard StremioServer::start() with a running flag
start() unconditionally spawned a fresh stremio-runtime every time it
was called. Today only the GUI thread calls it, but the crash-restart
path can re-fire start() while the previous teardown is still in
progress, racing two runtimes for port 11470.

Track a `running: Arc<AtomicBool>` on the struct: swap(true) on entry
and bail with a log if the previous server thread has not yet flipped
it back to false. Reset to false right before sender.notice() so that
the GUI's crash handler can legitimately spawn the next instance.

Closes #57
2026-05-10 14:44:18 +00:00
..
stremio_app fix: guard StremioServer::start() with a running flag 2026-05-10 14:44:18 +00:00
main.rs server IPC key 2026-02-02 14:54:41 +02:00