summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index eac930a..9328814 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