Skip to content

Commit

Permalink
shutdown poller on quit
Browse files Browse the repository at this point in the history
  • Loading branch information
aza547 committed Jul 11, 2024
1 parent 1ea225b commit 31c63ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ export default class Manager {
app.on('before-quit', () => {
console.info('[Manager] Running before-quit actions');
this.recorder.shutdownOBS();
this.poller.reset();
uIOhook.stop();
});

Expand Down
1 change: 1 addition & 0 deletions src/main/Recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ export default class Recorder extends EventEmitter {

this.wroteQueue.empty();
this.lastFile = this.obsRecordingFactory.lastFile();
console.info('[Recorder] Got last file from OBS:', this.lastFile);
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ ipcMain.on('videoPlayerSettings', (event, args) => {
*/
app.on('window-all-closed', async () => {
console.info('[Main] User closed app');
uIOhook.stop();
app.quit();
});

Expand Down

0 comments on commit 31c63ce

Please sign in to comment.