From d480558fe8a2de12be4fcd9a1bdd1b71c233787b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 9 Jan 2006 21:30:43 +0000 Subject: Fixed lockup on exit - Fixed lockup on exit (Waiting rccexternal exit forever) --- external/rcclibtranslate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'external') 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; -- cgit v1.2.3