EventIndex: Properly await the index closing.
This commit is contained in:
parent
25568fa15c
commit
a612a66b69
2 changed files with 4 additions and 3 deletions
|
@ -549,7 +549,8 @@ export default class EventIndex extends EventEmitter {
|
|||
const indexManager = PlatformPeg.get().getEventIndexingManager();
|
||||
this.removeListeners();
|
||||
this.stopCrawler();
|
||||
return indexManager.closeEventIndex();
|
||||
await indexManager.closeEventIndex();
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue