iobroker.js-controller 7.2.3 → 7.2.5

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/esm/main.js CHANGED
@@ -662,7 +662,7 @@ function createObjects(onConnect) {
662
662
  if (proc.restartTimer) {
663
663
  clearTimeout(proc.restartTimer);
664
664
  }
665
- const restartTimeout = (proc.config.common.stopTimeout || 500) + 2_500;
665
+ const restartTimeout = 2_500;
666
666
  proc.restartTimer = setTimeout(_id => startInstance(_id), restartTimeout, id);
667
667
  }
668
668
  }
@@ -4942,10 +4942,11 @@ async function setInstanceOfflineStates(id) {
4942
4942
  await states.setState(`${id}.alive`, { val: false, ack: true, from: hostObjectPrefix });
4943
4943
  await states.setState(`${id}.connected`, { val: false, ack: true, from: hostObjectPrefix });
4944
4944
  const adapterInstance = id.substring(SYSTEM_ADAPTER_PREFIX.length);
4945
- const state = await states.getState(`${adapterInstance}.info.connection`);
4945
+ const connectionStateId = `${adapterInstance}.info.connection`;
4946
+ const state = await states.getState(connectionStateId);
4946
4947
  if (state?.val === true) {
4947
4948
  outputCount++;
4948
- await states.setState(adapterInstance, { val: false, ack: true, from: hostObjectPrefix });
4949
+ await states.setState(connectionStateId, { val: false, ack: true, from: hostObjectPrefix });
4949
4950
  }
4950
4951
  }
4951
4952
  /**