mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
electron-main: Use the new shutdown method.
This commit is contained in:
parent
23bfa9262e
commit
19c02610fd
@ -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 New Issue
Block a user