mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
revert: extra close event on stream
This commit is contained in:
parent
2f124ad68b
commit
93de96f490
@ -443,9 +443,6 @@ export class Http2ServerCallStream<
|
||||
metadata: null,
|
||||
});
|
||||
}
|
||||
|
||||
// to compensate for a fact that cancelled is not always called
|
||||
this.emit('close');
|
||||
});
|
||||
|
||||
this.stream.on('drain', () => {
|
||||
@ -777,9 +774,6 @@ export class Http2ServerCallStream<
|
||||
call.emit('cancelled', reason);
|
||||
});
|
||||
|
||||
// to compensate for the fact that cancelled is no longer always called
|
||||
this.once('close', () => call.emit('close'))
|
||||
|
||||
this.once('callEnd', (status) => call.emit('callEnd', status));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user