ScoreList: make getValue synchronized

pull/216/merge
Alinson S. Xavier 8 years ago
parent 0dc9ec2e5f
commit cf66587644

@ -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);

Loading…
Cancel
Save