From 85a42b903f253b738ae0da0c3db2e3a1e2e8e085 Mon Sep 17 00:00:00 2001 From: cdi Date: Tue, 2 Jan 2018 12:03:03 +0100 Subject: [PATCH] Always set mHasPendingClientStates to false after emptying FIFO The condition can be removed because - only non-empty clientStates are pushed to the FIFO - calling handleRtClientState(...) with an empty clientState is a no-op --- include/ableton/link/Controller.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/ableton/link/Controller.hpp b/include/ableton/link/Controller.hpp index 47d53b21..5c26aecd 100644 --- a/include/ableton/link/Controller.hpp +++ b/include/ableton/link/Controller.hpp @@ -598,13 +598,10 @@ class Controller void processPendingClientStates() { const auto clientState = buildMergedPendingClientState(); - if (clientState.timeline || clientState.startStopState) - { - mController.mIo->async([this, clientState]() { - mController.handleRtClientState(clientState); - mHasPendingClientStates = false; - }); - } + mController.mIo->async([this, clientState]() { + mController.handleRtClientState(clientState); + mHasPendingClientStates = false; + }); } Controller& mController;