File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,7 @@ class AdsCallState {
401
401
watcher . onError ( streamStatus ) ;
402
402
}
403
403
}
404
+ this . client . handleAdsStreamEnd ( ) ;
404
405
}
405
406
406
407
hasSubscribedResources ( ) : boolean {
@@ -681,6 +682,7 @@ class LrsCallState {
681
682
this . client . trace (
682
683
'ADS stream ended. code=' + status . code + ' details= ' + status . details
683
684
) ;
685
+ this . client . handleLrsStreamEnd ( ) ;
684
686
}
685
687
686
688
private handleResponseMessage ( message : LoadStatsResponse__Output ) {
@@ -899,6 +901,7 @@ class XdsSingleServerClient {
899
901
}
900
902
901
903
handleAdsStreamEnd ( ) {
904
+ this . adsCallState = null ;
902
905
/* The backoff timer would start the stream when it finishes. If it is not
903
906
* running, restart the stream immediately. */
904
907
if ( ! this . adsBackoff . isRunning ( ) ) {
@@ -922,6 +925,7 @@ class XdsSingleServerClient {
922
925
}
923
926
924
927
handleLrsStreamEnd ( ) {
928
+ this . lrsCallState = null ;
925
929
/* The backoff timer would start the stream when it finishes. If it is not
926
930
* running, restart the stream immediately. */
927
931
if ( ! this . lrsBackoff . isRunning ( ) ) {
You can’t perform that action at this time.
0 commit comments