Fix logging for in call close confirmation
This commit is contained in:
parent
041347e30d
commit
9b781826a7
2 changed files with 16 additions and 18 deletions
|
@ -421,15 +421,15 @@ ipc.on('get-ready-for-shutdown', async () => {
|
|||
});
|
||||
|
||||
ipc.on('maybe-request-close-confirmation', async () => {
|
||||
const { maybeRequestCloseConfirmation } = window.Events;
|
||||
if (!maybeRequestCloseConfirmation) {
|
||||
const { getIsInCall, requestCloseConfirmation } = window.Events;
|
||||
if (!getIsInCall || !getIsInCall() || !requestCloseConfirmation) {
|
||||
ipc.send('received-close-confirmation', true);
|
||||
return;
|
||||
}
|
||||
|
||||
log.info('Requesting close confirmation.');
|
||||
ipc.send('requested-close-confirmation');
|
||||
const result = await maybeRequestCloseConfirmation();
|
||||
const result = await requestCloseConfirmation();
|
||||
ipc.send('received-close-confirmation', result);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue