From 0f552fc4f8dc3122db4e25bfe6476b2869b63190 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 15 Dec 2018 15:02:45 +0100 Subject: [PATCH] sharedspice.c, prevent crash, if controlswait is set and a next bg_run before controls are ready. --- src/sharedspice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index ebede159a..4eb008cf8 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -333,10 +333,10 @@ _cthread_run(void *controls) pthread_cond_wait(&cond, &triggerMutex); pthread_mutex_unlock(&triggerMutex); #endif - + fl_exited = FALSE; for (wl = controls; wl; wl = wl->wl_next) cp_evloop(wl->wl_word); - + fl_exited = TRUE; #ifdef HAVE_LIBPTHREAD cont_condition = FALSE; #endif