Skip to content

Commit 99c4a7e

Browse files
committed
fix: Await gRPC stub close in TaskHubGrpcClient stop method
1 parent 8bac003 commit 99c4a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/durabletask-js/src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class TaskHubGrpcClient {
5555
}
5656

5757
async stop(): Promise<void> {
58-
this._stub.close();
58+
await this._stub.close();
5959

6060
// Brief pause to allow gRPC cleanup - this is a known issue with grpc-node
6161
// https://github.com/grpc/grpc-node/issues/1563#issuecomment-829483711

0 commit comments

Comments
 (0)