Skip to content

Commit d5f86c5

Browse files
committed
bugfix(core): fix missing await in NestApplication.close()
NestApplication.close() was not always closing the port after promise resolve, because of the missing `await` in implementation. This commit fixes the problem.
1 parent b553676 commit d5f86c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/nest-application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class NestApplication extends NestApplicationContext
222222

223223
public async close(): Promise<any> {
224224
this.socketModule && (await this.socketModule.close());
225-
this.httpAdapter && this.httpAdapter.close();
225+
this.httpAdapter && (await this.httpAdapter.close());
226226

227227
await Promise.all(
228228
iterate(this.microservices).map(async microservice => {

0 commit comments

Comments
 (0)