Skip to content

Commit 6ccf8a7

Browse files
authored
Merge pull request ceph#64980 from rhcs-dashboard/multi-cluster-subs-close
mgr/dashboard: close token status subscription properly Reviewed-by: Ankush Behl <[email protected]>
2 parents 5204c3b + 79729c4 commit 6ccf8a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pybind/mgr/dashboard/frontend/src/app/shared/api/multi-cluster.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ export class MultiClusterService {
3333
}
3434

3535
startClusterTokenStatusPolling() {
36-
this.checkAndStartTimer();
36+
return this.checkAndStartTimer();
3737
}
3838

3939
private checkAndStartTimer() {
4040
this.checkTokenStatus().subscribe(this.getClusterTokenStatusObserver());
41-
this.timerService
41+
return this.timerService
4242
.get(() => this.checkTokenStatus(), this.TOKEN_CHECK_INTERVAL)
4343
.subscribe(this.getClusterTokenStatusObserver());
4444
}

0 commit comments

Comments
 (0)