From d89541fe3aa13be4d5aea71589f605ab59b6960f Mon Sep 17 00:00:00 2001 From: Amaury Date: Tue, 29 Jun 2021 17:49:59 +0200 Subject: [PATCH] added a early return when a double start is done. (cf issue 2) --- src/listener-rss.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/listener-rss.ts b/src/listener-rss.ts index 7e4ffbc..3dcddb4 100644 --- a/src/listener-rss.ts +++ b/src/listener-rss.ts @@ -71,6 +71,8 @@ class ListenerRss extends EventEmitter { * @brief call the callback function each looptime */ start(): void { + if (this.loopRunning) return; + this.loopRunning = true; const fun: () => void = async () => {