Skip to content

Commit

Permalink
fix(app): stop watcher when attempting to quit
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Feb 10, 2019
1 parent 215f49b commit 0251d18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,8 @@ app.on('activate', () => {
createWindow();
}
});

app.on('quit', () => {
win = null;
unwatch();
});

0 comments on commit 0251d18

Please sign in to comment.