mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Properly remove event listener in other handler
This commit is contained in:
parent
d77da26021
commit
b0f06d56c2
@ -60,6 +60,7 @@ export class DeadlineFilter extends BaseFilter implements Filter {
|
||||
resolve(metadata);
|
||||
this.channel.removeListener(
|
||||
'connectivityStateChanged', handleStateChange);
|
||||
this.callStream.removeListener('status', handleStatus);
|
||||
}
|
||||
};
|
||||
const handleStatus = () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user