summaryrefslogtreecommitdiffstats
path: root/src/lng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lng.c')
-rw-r--r--src/lng.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lng.c b/src/lng.c
index 4589de6..4b0676d 100644
--- a/src/lng.c
+++ b/src/lng.c
@@ -157,9 +157,11 @@ int rccSetLanguage(rcc_context ctx, rcc_language_id language_id) {
config = rccGetConfig(ctx, language_id);
// NULL is Okey (Off), if (!config) return -1;
+ rccMutexLock(ctx->mutex);
ctx->configure = 1;
ctx->current_language = language_id;
ctx->current_config = config;
+ rccMutexUnLock(ctx->mutex);
}
return 0;