mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-10-03 17:42:41 +00:00
electron-main: Use the new shutdown method.
This commit is contained in:
parent
23bfa9262e
commit
19c02610fd
1 changed files with 8 additions and 0 deletions
|
@ -393,6 +393,14 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||
break;
|
||||
|
||||
case 'closeEventIndex':
|
||||
if (eventIndex !== null) {
|
||||
try {
|
||||
await eventIndex.shutdown();
|
||||
} catch (e) {
|
||||
sendError(payload.id, e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
eventIndex = null;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue