loadAvatars is synchronized
parent
5b6342fae5
commit
877ebaae2d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue