Merge branch 'poljar/shutdown'

This commit is contained in:
Damir Jelić 2020-03-17 10:19:25 +01:00
commit 95930cb34c

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;