Since its not returning any subscription back to the `this.subs`
property, those subscriptions are not properly closed in the
workbench-layout when its destroyed. So ensuring proper return
Fixes: https://tracker.ceph.com/issues/72530
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit
79729c4ece92d5fdd2f5bed50c203a1a7077be14)
}
startClusterTokenStatusPolling() {
- this.checkAndStartTimer();
+ return this.checkAndStartTimer();
}
private checkAndStartTimer() {
this.checkTokenStatus().subscribe(this.getClusterTokenStatusObserver());
- this.timerService
+ return this.timerService
.get(() => this.checkTokenStatus(), this.TOKEN_CHECK_INTERVAL)
.subscribe(this.getClusterTokenStatusObserver());
}