better error handlig of shared data
This commit is contained in:
parent
69d14236f1
commit
d0382e0de1
3 changed files with 10 additions and 3 deletions
|
|
@ -55,7 +55,9 @@ class CurrentWeather extends WeatherDisplay {
|
|||
// test for data received
|
||||
if (!observations) {
|
||||
console.error('All current weather stations exhausted');
|
||||
this.setStatus(STATUS.failed);
|
||||
if (this.enabled) this.setStatus(STATUS.failed);
|
||||
// send failed to subscribers
|
||||
this.getDataCallback(undefined);
|
||||
return;
|
||||
}
|
||||
// preload the icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue