fix(mission): stop command loop on terminal state

This commit is contained in:
Tyson Rudd committed 2026-07-05 21:19:59 -06:00
1 parent a5667374bf
commit 58b66b1e60
2 files changed
+28 -2

No files matched your search

+6 -2
View File
@@ -496,8 +496,12 @@ export class TempestCommand extends EventEmitter<CommandEvents> {
});
// Forward mission events
this.mission.on('mission:completed', (_mission) => {
// Could trigger reporting here
this.mission.on('mission:completed', () => {
this.stop();
});
this.mission.on('mission:aborted', () => {
this.stop();
});
this.mission.on('mission:phase_changed', ({ mission, newPhase }) => {