-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
I believe there is a race condition in the JS code, that yields to https://github.com/Freeyourgadget/Gadgetbridge/issues/643 .
Specifically I am referring to this function.
If the localstorage key "disable_weather" is set to "yes", and the locationError gets called, the following happens:
- updateWeather() gets called by the ready event listener
- if weatherLoc is false, getLocation() is called
- if the current position returns error locationError gets called
- updateWeather() is called before incrementing currentFailures
- GOTO 1 (oh, the good basic times :-) )
h/t @LucaRainone for the help in diagnosing
Metadata
Metadata
Assignees
Labels
No labels