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

Commit

Permalink
Emit "end" on interruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-shatskyi committed May 30, 2016
1 parent 8f8e4a0 commit c8cc747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default class Job extends EmitterWithUniqueID {
if (this.command && this.status === Status.InProgress) {
this.command.kill("SIGINT");
this.setStatus(Status.Interrupted);
this.emit("end");
}
}

Expand Down

0 comments on commit c8cc747

Please sign in to comment.