Skip to content

Commit d0040ac

Browse files
committed
improvements flow
1 parent 39b6920 commit d0040ac

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/commands/run.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ export default class RunProject {
3030
public exitHandler(): void {
3131
if (this.config && this.config.run_settings.start_tunnel) {
3232
if (this.tunnel) {
33-
this.tunnel.stop().catch(console.error);
33+
this.tunnel.stop().then(() => {
34+
process.exit();
35+
}).catch(console.error);
36+
this.tunnel = undefined;
3437
}
38+
} else {
39+
process.exit()
3540
}
3641
}
3742

src/utils/poller.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ interface ITest {
88
}
99

1010
enum IStatus {
11-
'WAITING',
12-
'READY',
13-
'FAILED',
14-
'DONE'
11+
WAITING = 'WAITING',
12+
READY = 'READY',
13+
FAILED = 'FAILED',
14+
DONE = 'DONE'
1515
}
1616

1717
interface IRun {

0 commit comments

Comments
 (0)