ScoreList: make getValue synchronized

This commit is contained in:
2017-06-04 17:29:41 -04:00
parent 0dc9ec2e5f
commit cf66587644

View File

@@ -81,7 +81,7 @@ public abstract class ScoreList implements Iterable<Score>
* @param timestamp the timestamp of a day
* @return score value for that day
*/
public final int getValue(long timestamp)
public final synchronized int getValue(long timestamp)
{
compute(timestamp, timestamp);
Score s = getComputedByTimestamp(timestamp);