vona-core 5.0.96 → 5.0.97
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/dist/lib/core/meta.js +7 -12
- package/package.json +1 -1
package/dist/lib/core/meta.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import cluster from 'node:cluster';
|
|
2
1
|
import { EnumAppEvent } from "../../types/index.js";
|
|
3
2
|
import { BeanSimple } from "../bean/beanSimple.js";
|
|
4
3
|
import { AppLocale, BeanScopeContainer } from "../bean/index.js";
|
|
@@ -94,17 +93,13 @@ export class AppMeta extends BeanSimple {
|
|
|
94
93
|
return this[SymbolClosePromise];
|
|
95
94
|
}
|
|
96
95
|
async _closeInner() {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
//
|
|
103
|
-
|
|
104
|
-
this.app.server.close();
|
|
105
|
-
// maybe hang up using await
|
|
106
|
-
// await promisify(this.app.server.close).call(this.app.server);
|
|
107
|
-
}
|
|
96
|
+
// should not call disconnect, which will cause channel closed
|
|
97
|
+
// cluster.worker?.disconnect();
|
|
98
|
+
// close server
|
|
99
|
+
if (this.app.server) {
|
|
100
|
+
this.app.server.close();
|
|
101
|
+
// maybe hang up using await
|
|
102
|
+
// await promisify(this.app.server.close).call(this.app.server);
|
|
108
103
|
}
|
|
109
104
|
// appClose
|
|
110
105
|
this.appClose = true;
|