added a early return when a double start is done. (cf issue 2)
This commit is contained in:
parent
19a6869c55
commit
d89541fe3a
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user