iobroker.js-controller 7.2.3 → 7.2.4

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 CHANGED
@@ -577,7 +577,7 @@ function createObjects(onConnect) {
577
577
  if (proc.restartTimer) {
578
578
  clearTimeout(proc.restartTimer);
579
579
  }
580
- const restartTimeout2 = (proc.config.common.stopTimeout || 500) + 2500;
580
+ const restartTimeout2 = 2500;
581
581
  proc.restartTimer = setTimeout((_id2) => startInstance(_id2), restartTimeout2, id);
582
582
  }
583
583
  } else {
@@ -4123,10 +4123,11 @@ async function setInstanceOfflineStates(id) {
4123
4123
  await states.setState(`${id}.alive`, { val: false, ack: true, from: hostObjectPrefix });
4124
4124
  await states.setState(`${id}.connected`, { val: false, ack: true, from: hostObjectPrefix });
4125
4125
  const adapterInstance = id.substring(import_constants.SYSTEM_ADAPTER_PREFIX.length);
4126
- const state = await states.getState(`${adapterInstance}.info.connection`);
4126
+ const connectionStateId = `${adapterInstance}.info.connection`;
4127
+ const state = await states.getState(connectionStateId);
4127
4128
  if (state?.val === true) {
4128
4129
  outputCount++;
4129
- await states.setState(adapterInstance, { val: false, ack: true, from: hostObjectPrefix });
4130
+ await states.setState(connectionStateId, { val: false, ack: true, from: hostObjectPrefix });
4130
4131
  }
4131
4132
  }
4132
4133
  async function checkAvailableDockerUpdate() {