EventIndexPeg: Add a helper method to easily start the crawler.

pull/21833/head
Damir Jelić 2019-11-26 13:37:53 +01:00
parent 4fe7752f3c
commit 928bb69b11
1 changed files with 5 additions and 0 deletions

View File

@ -69,6 +69,11 @@ class EventIndexPeg {
return this.index; return this.index;
} }
start() {
if (this.index === null) return;
this.index.startCrawler();
}
stop() { stop() {
if (this.index === null) return; if (this.index === null) return;
this.index.stopCrawler(); this.index.stopCrawler();