Skip to content

Commit

Permalink
fix #62 : synchronize allNailStats.get(Class) properly
Browse files Browse the repository at this point in the history
  • Loading branch information
yilongli authored and Dwight Guth committed Sep 15, 2015
1 parent 2fea339 commit 0127cb8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ void nailStarted(Class nailClass) {
* @param nailClass the nail class that finished
*/
void nailFinished(Class nailClass) {
NailStats stats = (NailStats) allNailStats.get(nailClass);
NailStats stats;
synchronized (allNailStats) {
stats = (NailStats) allNailStats.get(nailClass);
}
stats.nailFinished();
}

Expand Down

0 comments on commit 0127cb8

Please sign in to comment.