Concurrency error in GT_LanguageManager.addStringLocalization

fixed by @codewarrior0
This commit is contained in:
Dream-Master 2017-01-02 16:01:33 +01:00
parent d39553eef0
commit 8cbb366360

View file

@ -22,7 +22,7 @@ public class GT_LanguageManager {
return addStringLocalization(aKey, aEnglish, true);
}
public static String addStringLocalization(String aKey, String aEnglish, boolean aWriteIntoLangFile) {
public static synchronized String addStringLocalization(String aKey, String aEnglish, boolean aWriteIntoLangFile) {
if (aKey == null) return E;
if (aWriteIntoLangFile){ aEnglish = writeToLangFile(aKey, aEnglish);
if(!LANGMAP.containsKey(aKey)){