Hang up any active calls when quitting
This commit is contained in:
parent
563f016245
commit
7edf3763a8
2 changed files with 10 additions and 0 deletions
|
@ -1700,6 +1700,10 @@ app.on('before-quit', () => {
|
|||
});
|
||||
|
||||
windowState.markShouldQuit();
|
||||
|
||||
if (mainWindow) {
|
||||
mainWindow.webContents.send('quit');
|
||||
}
|
||||
});
|
||||
|
||||
// Quit when all windows are closed.
|
||||
|
|
|
@ -288,6 +288,12 @@ export class CallingClass {
|
|||
uxActions.setPresenting();
|
||||
});
|
||||
|
||||
ipcRenderer.on('quit', () => {
|
||||
for (const conversationId of Object.keys(this.callsByConversation)) {
|
||||
this.hangup(conversationId);
|
||||
}
|
||||
});
|
||||
|
||||
this.cleanExpiredGroupCallRingsAndLoop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue