added a early return when a double start is done. (cf issue 2)

This commit is contained in:
Amaury committed 2021-06-29 17:49:59 +02:00
1 parent 19a6869c55
commit d89541fe3a
1 file changed
+2
+2
View File
@@ -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 () => {