Skip to content

Commit

Permalink
Try to avoid 'Unload error TypeError: onecron.destroy is not a function'
Browse files Browse the repository at this point in the history
  • Loading branch information
baerengraben authored and baerengraben committed Jun 9, 2021
1 parent 54bdffa commit adb109f
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 @@ -2788,7 +2788,7 @@ class SwissWeatherApi extends utils.Adapter {
try {
for (const croni in this.crons) {
const onecron = this.crons[croni];
if (typeof onecron.destroy() === 'function' ){
if (typeof onecron.destroy === 'function' ){
this.log.info("destroy cron job");
onecron.destroy();
} else {
Expand Down

0 comments on commit adb109f

Please sign in to comment.