From d7587f4d71dbc56874bce675b09141eab742df81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 29 Nov 2021 14:03:19 +0200 Subject: [PATCH] Update Stations class --- src/client/classes/Stations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/classes/Stations.js b/src/client/classes/Stations.js index fdd7668..79bb234 100644 --- a/src/client/classes/Stations.js +++ b/src/client/classes/Stations.js @@ -34,7 +34,7 @@ module.exports = class Stations extends Array { this.logger('Stations', 'Fetching list failed'); console.error(error + "\n"); - this.fetch(options); + if(this.length == 0) this.fetch(options); } }