Skip to content

Commit

Permalink
fix: error restart
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNoim committed Feb 12, 2023
1 parent 197d869 commit 88bb695
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion reactive_home/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ for await (const path of walk(flags.root)) {
`Terminate worker ${path.path} because of an error. Restart in 5s.`,
error.error
);
worker.terminate();
try {
worker.terminate();
} catch (e) {
console.error(e);
}

setTimeout(() => {
console.log(`Will now restart ${path.path}`);
resolve(null);
Expand Down

0 comments on commit 88bb695

Please sign in to comment.