Skip to content

Commit 93de96f

Browse files
committed
revert: extra close event on stream
1 parent 2f124ad commit 93de96f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/grpc-js/src/server-call.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,6 @@ export class Http2ServerCallStream<
443443
metadata: null,
444444
});
445445
}
446-
447-
// to compensate for a fact that cancelled is not always called
448-
this.emit('close');
449446
});
450447

451448
this.stream.on('drain', () => {
@@ -777,9 +774,6 @@ export class Http2ServerCallStream<
777774
call.emit('cancelled', reason);
778775
});
779776

780-
// to compensate for the fact that cancelled is no longer always called
781-
this.once('close', () => call.emit('close'))
782-
783777
this.once('callEnd', (status) => call.emit('callEnd', status));
784778
}
785779

0 commit comments

Comments
 (0)