iobroker.js-controller 6.0.5 → 6.0.6

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.
@@ -17,7 +17,7 @@ export default function restart(callback) {
17
17
  args = ['restart'];
18
18
  }
19
19
  else {
20
- // Unix has a global iobroker binary that delegates to the init system
20
+ // Unix has a global ioBroker binary that delegates to the init system
21
21
  // We need to call that, so we don't have two instances of ioBroker running
22
22
  cmd = 'iobroker';
23
23
  args = ['restart'];
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA6iKH;;;;GAIG;AACH,wBAAsB,IAAI,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiajE"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA+iKH;;;;GAIG;AACH,wBAAsB,IAAI,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiajE"}
package/build/esm/main.js CHANGED
@@ -2513,6 +2513,7 @@ async function processMessage(msg) {
2513
2513
  }
2514
2514
  catch (e) {
2515
2515
  sendTo(msg.from, msg.command, { error: e.message, success: false }, msg.callback);
2516
+ return;
2516
2517
  }
2517
2518
  try {
2518
2519
  await listUpdatableOsPackages();
@@ -2521,6 +2522,7 @@ async function processMessage(msg) {
2521
2522
  logger.warn(`${hostLogPrefix} Could not check for new OS updates after upgrade: ${e.message}`);
2522
2523
  }
2523
2524
  if (restartRequired) {
2525
+ logger.info(`${hostLogPrefix} Restart js-controller because desired after package upgrade`);
2524
2526
  await wait(200);
2525
2527
  restart(() => !isStopping && stop(false));
2526
2528
  }