mirror of https://github.com/grpc/grpc-node.git
grpc-js: Clear deadline timer when call ends
This commit is contained in:
parent
3fe218525a
commit
ba405cf35e
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@grpc/grpc-js",
|
"name": "@grpc/grpc-js",
|
||||||
"version": "1.8.4",
|
"version": "1.8.5",
|
||||||
"description": "gRPC Library for Node - pure JS implementation",
|
"description": "gRPC Library for Node - pure JS implementation",
|
||||||
"homepage": "https://grpc.io/",
|
"homepage": "https://grpc.io/",
|
||||||
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
||||||
|
|
|
@ -103,6 +103,7 @@ export class ResolvingCall implements Call {
|
||||||
if (!this.filterStack) {
|
if (!this.filterStack) {
|
||||||
this.filterStack = this.filterStackFactory.createFilter();
|
this.filterStack = this.filterStackFactory.createFilter();
|
||||||
}
|
}
|
||||||
|
clearTimeout(this.deadlineTimer);
|
||||||
const filteredStatus = this.filterStack.receiveTrailers(status);
|
const filteredStatus = this.filterStack.receiveTrailers(status);
|
||||||
this.trace('ended with status: code=' + filteredStatus.code + ' details="' + filteredStatus.details + '"');
|
this.trace('ended with status: code=' + filteredStatus.code + ' details="' + filteredStatus.details + '"');
|
||||||
this.statusWatchers.forEach(watcher => watcher(filteredStatus));
|
this.statusWatchers.forEach(watcher => watcher(filteredStatus));
|
||||||
|
|
Loading…
Reference in New Issue