Skip to content

Commit

Permalink
Bugfix #47
Browse files Browse the repository at this point in the history
  • Loading branch information
baerengraben authored and baerengraben committed Jun 8, 2021
1 parent 8f8d8e2 commit f71b746
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2756,9 +2756,10 @@ class SwissWeatherApi extends utils.Adapter {
const onecron = this.crons[croni]
onecron.destroy()
}
this.log.debug("cleaned everything up...");
this.setState('info.connection', false, true);
//set state to 'nok'
this.setState('swiss-weather-api.0.info.connection', false, true);
clearTimeout(timeout);
this.log.debug("cleaned everything up...");
callback();
} catch (e) {
callback();
Expand Down

0 comments on commit f71b746

Please sign in to comment.