fix(mission): stop command loop on terminal state
This commit is contained in:
1 parent
a5667374bf
commit
58b66b1e60
2 files changed
+28
-2
No files matched your search
+6
-2
@@ -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 }) => {
|
||||
|
||||
Reference in new issue
Block a user