EventIndex: Move the event listener registration into the EventIndex class.

This commit is contained in:
Damir Jelić 2019-11-19 10:46:18 +01:00
parent d2a9918359
commit 6017473caf
3 changed files with 40 additions and 30 deletions

View file

@ -97,10 +97,9 @@ class EventIndexPeg {
const indexManager = PlatformPeg.get().getEventIndexingManager();
if (indexManager !== null) {
this.stop();
this.unset();
console.log("EventIndex: Deleting event index.");
await indexManager.deleteEventIndex();
this.index = null;
}
}
}