pinokiod 1.3.34 → 1.3.36
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/package.json +1 -1
- package/server/index.js +13 -5
package/package.json
CHANGED
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
|
-
|
|
1736
|
-
|
|
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(options)
|
|
1799
|
+
await this.start(options)
|
|
1800
|
+
console.log("RESTARTED")
|
|
1793
1801
|
return
|
|
1794
1802
|
}
|
|
1795
1803
|
}
|