From 32044a3733aab0f913c86738ebabbe63aed7f1d6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Feb 2013 21:06:31 +0000 Subject: Fix potential deadlock on exit. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5044 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/PreProcessor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/server') diff --git a/src/server/PreProcessor.cpp b/src/server/PreProcessor.cpp index dec6c2df..d62fdab3 100644 --- a/src/server/PreProcessor.cpp +++ b/src/server/PreProcessor.cpp @@ -36,7 +36,10 @@ PreProcessor::PreProcessor() } PreProcessor::~PreProcessor() -{} +{ + _exit_flag = true; + _sem.post(); +} void PreProcessor::event(Event* const ev) -- cgit v1.2.1