summaryrefslogtreecommitdiffstats
path: root/src/Patchage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Patchage.cpp')
-rw-r--r--src/Patchage.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 61a9abd..b7f601c 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -295,9 +295,13 @@ Patchage::attach()
bool
Patchage::idle_callback()
{
- if (m_jack_driver)
- while (m_jack_driver->events().fill() > 0)
- m_jack_driver->events().pop().execute();
+ if (m_jack_driver) {
+ while (!m_jack_driver->events().empty()) {
+ PatchageEvent& ev = m_jack_driver->events().front();
+ m_jack_driver->events().pop();
+ ev.execute();
+ }
+ }
bool refresh = m_refresh;