We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91655e0 commit b665e1fCopy full SHA for b665e1f
1 file changed
packages/durabletask-js/src/client/client.ts
@@ -827,10 +827,12 @@ export class TaskHubGrpcClient {
827
});
828
829
stream.on("end", () => {
830
+ stream.removeAllListeners();
831
resolve(historyEvents);
832
833
834
stream.on("error", (err: grpc.ServiceError) => {
835
836
if (err.code === grpc.status.NOT_FOUND) {
837
reject(new Error(`An orchestration with the instanceId '${instanceId}' was not found.`));
838
} else if (err.code === grpc.status.CANCELLED) {
0 commit comments