diff --git a/src/listener-rss.ts b/src/listener-rss.ts index db49208..06a14b8 100644 --- a/src/listener-rss.ts +++ b/src/listener-rss.ts @@ -67,10 +67,10 @@ export class ListenerRss extends EventEmitter { */ start(): void { this.loopRunning = true; - + const fun: () => void = async () => { - await Promise.resolve( - this.fetchRSS() + await Promise.resolve( + await this.fetchRSS() .then((obj: { [key: string]: any }) => { this.emit("update", obj); const updatedEntriesLinks = obj.items.map(