electron-main: Use the new shutdown method.

This commit is contained in:
Damir Jelić 2020-03-13 11:32:25 +01:00
parent 23bfa9262e
commit 19c02610fd

View file

@ -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;