diff options
Diffstat (limited to 'src/lng.c')
-rw-r--r-- | src/lng.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |