iobroker.js-controller 6.0.7 → 6.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/main.js +10 -9
- package/build/cjs/main.js.map +2 -2
- package/build/esm/main.d.ts.map +1 -1
- package/build/esm/main.js +12 -10
- package/build/esm/main.js.map +1 -1
- package/build/tsconfig.build.tsbuildinfo +1 -1
- package/io-package.json +2 -2
- package/package.json +14 -14
package/build/cjs/main.js
CHANGED
|
@@ -406,8 +406,8 @@ function createStates(onConnect) {
|
|
|
406
406
|
}
|
|
407
407
|
if (pluginHandler.isPluginActive(pluginName) !== state.val) {
|
|
408
408
|
if (state.val) {
|
|
409
|
-
if (!pluginHandler.
|
|
410
|
-
pluginHandler.
|
|
409
|
+
if (!pluginHandler.isPluginInstanciated(pluginName)) {
|
|
410
|
+
pluginHandler.instanciatePlugin(pluginName, pluginHandler.getPluginConfig(pluginName), controllerDir);
|
|
411
411
|
pluginHandler.setDatabaseForPlugin(pluginName, objects, states);
|
|
412
412
|
pluginHandler.initPlugin(pluginName, ioPackage);
|
|
413
413
|
}
|
|
@@ -474,13 +474,14 @@ async function initializeController() {
|
|
|
474
474
|
connected = true;
|
|
475
475
|
if (!isStopping) {
|
|
476
476
|
pluginHandler.setDatabaseForPlugins(objects, states);
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
477
|
+
pluginHandler.initPlugins(ioPackage, async () => {
|
|
478
|
+
states.subscribe(`${hostObjectPrefix}.plugins.*`);
|
|
479
|
+
await checkHost();
|
|
480
|
+
startMultihost(config);
|
|
481
|
+
setMeta();
|
|
482
|
+
started = true;
|
|
483
|
+
getInstances();
|
|
484
|
+
});
|
|
484
485
|
}
|
|
485
486
|
} else {
|
|
486
487
|
connected = true;
|