Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
Added clearing intervals when window close for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamazaki93 committed May 8, 2018
1 parent 202111f commit 6ddeaa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/git/auto-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ ipcMain.on('Settings-Set', (event, arg) => {
function init(win, stt) {
window = win;
settings = stt;

window.on('close', (event) => {
clearInterval(autoFetch);
})

initAutoFetchSettings();
registerAutoFetch();
}
Expand Down
3 changes: 3 additions & 0 deletions app/git/file-watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ ipcMain.on('Repo-Open', openRepo);

function init(win) {
window = win;
window.on('close', (event) => {
clearInterval(refreshInterval);
})
}

function openRepo(event, arg) {
Expand Down

0 comments on commit 6ddeaa6

Please sign in to comment.