Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
destroy() is obsolete, use stop() instead => node-cron/node-cron#289
  • Loading branch information
baerengraben authored Jun 11, 2021
1 parent e95f748 commit 8070033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3004,7 +3004,7 @@ class SwissWeatherApi extends utils.Adapter {
onUnload(callback) {
try {
if(cronJob) {
cronJob.destroy();
cronJob.stop();
this.log.debug('Cron job destroyed');
}

Expand Down

0 comments on commit 8070033

Please sign in to comment.