sharedspice.c, prevent crash, if controlswait is set

and a next bg_run before controls are ready.
This commit is contained in:
Holger Vogt 2018-12-15 15:02:45 +01:00
parent 0089cc543a
commit 0f552fc4f8
1 changed files with 2 additions and 2 deletions

View File

@ -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