Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit c8cc747

Browse files
committed
Emit "end" on interruption.
1 parent 8f8e4a0 commit c8cc747

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Job.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export default class Job extends EmitterWithUniqueID {
114114
if (this.command && this.status === Status.InProgress) {
115115
this.command.kill("SIGINT");
116116
this.setStatus(Status.Interrupted);
117+
this.emit("end");
117118
}
118119
}
119120

0 commit comments

Comments
 (0)