@meridianjs/framework 0.1.0 → 0.1.1
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/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -636,9 +636,11 @@ async function bootstrap(opts) {
|
|
|
636
636
|
},
|
|
637
637
|
async stop() {
|
|
638
638
|
logger.info("Shutting down Meridian server...");
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
639
|
+
if (httpServer.listening) {
|
|
640
|
+
await new Promise((resolve, reject) => {
|
|
641
|
+
httpServer.close((err) => err ? reject(err) : resolve());
|
|
642
|
+
});
|
|
643
|
+
}
|
|
642
644
|
try {
|
|
643
645
|
const bus = container.resolve("eventBus");
|
|
644
646
|
await bus.close?.();
|
package/package.json
CHANGED