loadAvatars is synchronized

master
melvin 2011-07-28 13:54:07 +08:00
parent 5b6342fae5
commit 877ebaae2d
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class AvatarImages {
return new PlayerAvatar(image);
}
private void loadAvatars() {
private synchronized void loadAvatars() {
final String avatar=GeneralConfig.getInstance().getAvatar();
if (!avatar.equals(current)) {
current=avatar;