pinokiod 1.3.34 → 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 +11 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "1.3.34",
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()