mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
fix(ook): use process group kill for reliable stop
The OOK subprocess was spawned without start_new_session=True, so process.terminate() only signalled the parent — child processes kept running. Now uses os.killpg() to terminate the entire process group, matching the pattern used by all other routes (ADS-B, AIS, ACARS, etc.). Also fixes silent error swallowing in the frontend stop handler so the UI resets even if the backend request fails. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -125,7 +125,13 @@ var OokMode = (function () {
|
||||
updateUI(false);
|
||||
disconnectSSE();
|
||||
})
|
||||
.catch(function () {});
|
||||
.catch(function (err) {
|
||||
console.error('Failed to stop OOK decoder:', err);
|
||||
// Force UI reset even if backend call failed
|
||||
state.running = false;
|
||||
updateUI(false);
|
||||
disconnectSSE();
|
||||
});
|
||||
}
|
||||
|
||||
// ---- SSE ----
|
||||
|
||||
Reference in New Issue
Block a user