From d8e7c82f1ca367ba05bc5ddd7af5d097a5f073e8 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 15 May 2011 19:45:45 +0100 Subject: [PATCH] Fix n-gravity toggle --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index eac930ae1..9328814e1 100644 --- a/src/main.c +++ b/src/main.c @@ -1285,6 +1285,7 @@ void stop_grav_async() if(ngrav_enable){ pthread_mutex_lock(&gravmutex); gravthread_done = 1; + pthread_cond_signal(&gravcv); pthread_mutex_unlock(&gravmutex); pthread_join(gravthread, NULL); pthread_mutex_destroy(&gravmutex); //Destroy the mutex