Skip to content

Commit

Permalink
shutdown jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ka-vaNu committed Feb 12, 2022
1 parent e5a099b commit 27c7217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

const utils = require("@iobroker/adapter-core");

const tools = require(__dirname + "/lib/tools");
const tools = require("./lib/tools");
const schedule = require("node-schedule");
const shutterbox = require("./lib/shutterbox");
const switchbox = require("./lib/switchbox");
Expand Down Expand Up @@ -102,7 +102,7 @@ class Blebox extends utils.Adapter {
onUnload(callback) {
this.log.info("Shutting down...");
try {
this.schedule.gracefulShutdown();
schedule.gracefulShutdown();
this.log.info("All Jobs shutted down...");
callback();
} catch (e) {
Expand Down

0 comments on commit 27c7217

Please sign in to comment.