}
secstonextupdate = secsToNextGame();
- if (secstonextupdate < INTERVAL_FAST) {
- secstonextupdate = INTERVAL_FAST;
- } else if (secstonextupdate > 6 * 3600) {
+ if ((secstonextupdate == -1) ||
+ (secstonextupdate > 6 * 3600)) {
+ // all games finished for this matchday
secstonextupdate = 6 * 3600;
+ } else if (secstonextupdate < INTERVAL_FAST) {
+ secstonextupdate = INTERVAL_FAST;
}
m_updateTimer.start(secstonextupdate * 1000);