Skip to content

Commit 6c22219

Browse files
Merge pull request nestjs#2552 from ArrivalDistributionPlatform/close-fix-missing-await
bugfix(core): fix missing await in NestApplication.close()
2 parents b553676 + d5f86c5 commit 6c22219

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)