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

This commit is contained in:
Amaury 2021-06-29 17:49:59 +02:00
parent 19a6869c55
commit d89541fe3a

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 () => {