revert: extra close event on stream

This commit is contained in:
AVVS 2022-10-19 15:25:42 -07:00
parent 2f124ad68b
commit 93de96f490
No known key found for this signature in database
GPG Key ID: 2B890ABACCC3E369

View File

@ -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));
}