summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-12 10:31:18 +0100
committerDavid Robillard <d@drobilla.net>2017-02-12 11:11:14 +0100
commitd32c1a15d453b5d120454212d85a7b92fcd42c53 (patch)
tree4a45189abc42dbba5b90710a9e8d296a1cd89bee
parentb6b8f7b3371c6c27055ec1fba970de56dd057a01 (diff)
downloadingen-d32c1a15d453b5d120454212d85a7b92fcd42c53.tar.gz
ingen-d32c1a15d453b5d120454212d85a7b92fcd42c53.tar.bz2
ingen-d32c1a15d453b5d120454212d85a7b92fcd42c53.zip
Fix check for pending events
-rw-r--r--src/server/Engine.cpp2
-rw-r--r--src/server/PostProcessor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index e70d5522..6b0c909c 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -460,7 +460,7 @@ Engine::run(uint32_t sample_count)
bool
Engine::pending_events()
{
- return !_pre_processor->empty();
+ return !_pre_processor->empty() || _post_processor->pending();
}
void
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index 6c709518..90dd0309 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -70,7 +70,7 @@ PostProcessor::append(RunContext& context, Event* first, Event* last)
bool
PostProcessor::pending() const
{
- return _head.load() || _engine.pending_notifications();
+ return _head.load()->next() || _engine.pending_notifications();
}
void