Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcf3a1b3 authored by Bart Van Assche's avatar Bart Van Assche Committed by Automerger Merge Worker
Browse files

audio: Simplify AudioHalBinderServiceUtil::waitForFired() am: a76d4d88

parents 1afd920a a76d4d88
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -71,8 +71,7 @@ class AudioHalBinderServiceUtil {

        bool waitForFired(std::chrono::milliseconds timeoutMs) {
            std::unique_lock<std::mutex> lock(mutex);
            condition.wait_for(lock, timeoutMs, [this]() { return fired; });
            return fired;
            return condition.wait_for(lock, timeoutMs, [this]() { return fired; });
        }

      private: