Merge pull request #836 from codewarrior0/issue-720-cme

Fix #720 - Concurrency error in GT_LanguageManager.addStringLocalization
This commit is contained in:
Blood-Asp 2017-01-04 16:35:52 +01:00 committed by GitHub
commit b7d187cc4e

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)){