summaryrefslogtreecommitdiffstats
path: root/external/rcclibtranslate.c
diff options
context:
space:
mode:
Diffstat (limited to 'external/rcclibtranslate.c')
-rw-r--r--external/rcclibtranslate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/rcclibtranslate.c b/external/rcclibtranslate.c
index 7a36814..24f44a2 100644
--- a/external/rcclibtranslate.c
+++ b/external/rcclibtranslate.c
@@ -166,7 +166,9 @@ void rccLibTranslateFree() {
if (session) {
if (thread) {
exitflag = 1;
+ g_mutex_lock(mutex);
g_cond_signal(cond);
+ g_mutex_unlock(mutex);
g_thread_join(thread);
thread = NULL;
exitflag = 0;