Navigation Menu

Skip to content

Commit

Permalink
fix(grpc): 🐞 Uncaught TypeError: Cannot read properties… (#2201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddzyan committed Aug 8, 2022
1 parent a10af80 commit f5c993f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/grpc/src/provider/framework.ts
Expand Up @@ -243,6 +243,10 @@ export class MidwayGRPCFramework extends BaseFramework<
}

public async beforeStop() {
if (!this.server) {
return;
}

await new Promise<void>(resolve => {
const shutdownTimer = setTimeout(() => {
this.server.forceShutdown();
Expand Down

0 comments on commit f5c993f

Please sign in to comment.