summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audiocacheeventhandler.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/audiocacheeventhandler.cc b/src/audiocacheeventhandler.cc
index 001f6b5..01db796 100644
--- a/src/audiocacheeventhandler.cc
+++ b/src/audiocacheeventhandler.cc
@@ -92,11 +92,9 @@ void AudioCacheEventHandler::stop()
}
running = false;
- if(threaded)
- {
- sem.post();
- wait_stop();
- }
+
+ sem.post();
+ wait_stop();
}
void AudioCacheEventHandler::setThreaded(bool threaded)