Skip to content

Commit

Permalink
fix(watch): force quit when watch is false
Browse files Browse the repository at this point in the history
  • Loading branch information
Qu4k committed Sep 8, 2020
1 parent 74caccf commit 68c1d83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion info.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020-present the denosaurs team. All rights reserved. MIT license.

export const VERSION = "2.3.3";
export const VERSION = "2.4.0";
export const BRANCH = "master";
// export const COMPAT: { [denon: string]: string[] } = {
// "2.3.0": ["1.2.0"],
Expand Down
2 changes: 2 additions & 0 deletions src/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class Daemon implements AsyncIterable<DenonEvent> {
logger.info("clean exit - waiting for changes before restart");
} else {
logger.info("clean exit - denon is exiting ...");
Deno.exit(0);
}
} else {
if (options.watch) {
Expand All @@ -129,6 +130,7 @@ export class Daemon implements AsyncIterable<DenonEvent> {
);
} else {
logger.error("app crashed - denon is exiting ...");
Deno.exit(1);
}
}
}
Expand Down

0 comments on commit 68c1d83

Please sign in to comment.