mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-21 19:50:01 +00:00
addressing bug 896 by temporarily unregistering LeaderboardPanel as TimeListener from Timer while adjusting live delay in case null would be used as request time point
This commit is contained in:
1 parent
7a5c00609a
commit
0ac31ef632
1 file changed
+9
+9
@@ -1647,7 +1647,16 @@ public class LeaderboardPanel extends SimplePanel implements TimeListener, PlayS
|
||||
}
|
||||
|
||||
private void setDelayInMilliseconds(long delayInMilliseconds) {
|
||||
// If the timer is currently in a mode that causes null to be used as the leaderboard request time stamp,
|
||||
// don't let a live play delay change cause another load request by unregistering this panel as timer
|
||||
// listener before and re-registering it after adjusting the live play delay.
|
||||
if (useNullAsTimePoint()) {
|
||||
timer.removeTimeListener(this);
|
||||
}
|
||||
timer.setLivePlayDelayInMillis(delayInMilliseconds);
|
||||
if (useNullAsTimePoint()) {
|
||||
timer.addTimeListener(this);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isAutoExpandPreSelectedRace() {
|
||||
|
||||
Reference in new issue
Block a user