mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
Merge branch 'poljar/shutdown'
This commit is contained in:
commit
95930cb34c
@ -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…
x
Reference in New Issue
Block a user