dockerproxy: await on close
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user