dockerproxy: await on close

This commit is contained in:
Girish Ramakrishnan
2024-01-23 12:38:57 +01:00
parent 0447086882
commit 660260336c

View File

@@ -181,7 +181,8 @@ async function start() {
}
async function stop() {
if (gHttpServer) gHttpServer.close();
if (!gHttpServer) return;
await util.promisify(gHttpServer.close.bind(gHttpServer))();
gHttpServer = null;
}