File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js-xds" ,
3
- "version" : " 1.12.1 " ,
3
+ "version" : " 1.12.2 " ,
4
4
"description" : " Plugin for @grpc/grpc-js. Adds the xds:// URL scheme and associated features." ,
5
5
"main" : " build/src/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -682,6 +682,14 @@ class LrsCallState {
682
682
this . sendStats ( ) ;
683
683
}
684
684
685
+ destroy ( ) {
686
+ if ( this . statsTimer ) {
687
+ clearInterval ( this . statsTimer ) ;
688
+ this . statsTimer = null ;
689
+ }
690
+ return null ;
691
+ }
692
+
685
693
private handleStreamStatus ( status : StatusObject ) {
686
694
this . client . trace (
687
695
'LRS stream ended. code=' + status . code + ' details= ' + status . details
@@ -932,7 +940,7 @@ class XdsSingleServerClient {
932
940
}
933
941
934
942
handleLrsStreamEnd ( ) {
935
- this . lrsCallState = null ;
943
+ this . lrsCallState = this . lrsCallState ? this . lrsCallState . destroy ( ) : null ;
936
944
/* The backoff timer would start the stream when it finishes. If it is not
937
945
* running, restart the stream immediately. */
938
946
if ( ! this . lrsBackoff . isRunning ( ) ) {
You can’t perform that action at this time.
0 commit comments