Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ckagiri committed Dec 2, 2024
1 parent 530b3f4 commit cf7face
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export class TodayAndMorrowScheduler extends BaseScheduler {
} else if (matchStart.isBefore(moment(liveMatch.utcDate))) {
liveMatch = match;
}
if (liveMatch.id === this.liveMatchId) {
break;
}
} else if (matchStatus === MatchStatus.SCHEDULED) {
if (matchStart.isBefore(nextPoll)) {
nextPoll = matchStart.add(1, 'minutes');
Expand All @@ -97,7 +100,7 @@ export class TodayAndMorrowScheduler extends BaseScheduler {
const diff = nextPoll.diff(moment(), 'minutes');
nextPoll = diff <= 0 ? moment().add(1, 'minutes') : nextPoll;

if (liveMatchId != null || this.liveMatchId != null) {
if (liveMatchId != null || this.liveMatchId != null || this.liveMatchHasFinished) {
nextPoll = moment().add(1, 'minutes');
}
this.nextPoll = nextPoll;
Expand Down

0 comments on commit cf7face

Please sign in to comment.