fix: listen promisify ()

This commit is contained in:
Junyi 2022-10-12 21:08:18 +08:00 committed by GitHub
parent 6c929039b1
commit a645dbf5fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,7 +379,7 @@ export class Application<StateT = DefaultState, ContextT = DefaultContext> exten
// close http server
if (this.listenServer) {
await promisify(this.listenServer.close)();
await promisify(this.listenServer.close).call(this.listenServer);
this.listenServer = null;
}