pinokiod 1.3.33 → 1.3.35

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server/index.js +13 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.33",
3
+ "version": "1.3.35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -1732,12 +1732,19 @@ class Server {
1732
1732
  if (this.listening) {
1733
1733
  // stop proxies
1734
1734
  for(let scriptPath in this.kernel.api.proxies) {
1735
- await this.kernel.api.stopProxy({
1736
- script: scriptPath
1737
- })
1735
+ try {
1736
+ await this.kernel.api.stopProxy({
1737
+ script: scriptPath
1738
+ })
1739
+ } catch (e) {
1740
+ }
1741
+ }
1742
+ try {
1743
+ await this.httpTerminator.terminate();
1744
+ } catch (e) {
1738
1745
  }
1739
- await this.httpTerminator.terminate();
1740
1746
  }
1747
+ console.log("** AA")
1741
1748
 
1742
1749
  // configure from kernel.store
1743
1750
  await this.syncConfig()
@@ -1789,7 +1796,8 @@ class Server {
1789
1796
  this.kernel.store.set("version", this.version.pinokiod)
1790
1797
  console.log("RESTART")
1791
1798
  this.listening = true // set this.listening = true so all http connections get reset when restarting
1792
- this.start({ debug: this.debug, browser: this.browser })
1799
+ this.start(options)
1800
+ return
1793
1801
  }
1794
1802
  }
1795
1803