diff --git a/main.js b/main.js index 380318c7..9036afb6 100644 --- a/main.js +++ b/main.js @@ -89,7 +89,7 @@ function startAdapter(options) { }, // is called when databases are connected and adapter received configuration. // start here! - ready: main() + ready: () => main() }); // you have to call the adapter function and pass a options object // adapter will be restarted automatically every time as the configuration changed, e.g system.adapter.template.0 @@ -167,4 +167,4 @@ if (module && module.parent) { } else { // or start the instance directly startAdapter(); -} \ No newline at end of file +}