Don't hold lock on notifyChanged

custom
ailurux 1 year ago
parent 9512bd97bb
commit 527374c72e
  1. 2
      src/audio/track_queue.cpp

@ -318,11 +318,13 @@ auto TrackQueue::repeat() const -> bool {
} }
auto TrackQueue::replay(bool en) -> void { auto TrackQueue::replay(bool en) -> void {
{
const std::unique_lock<std::shared_mutex> lock(mutex_); const std::unique_lock<std::shared_mutex> lock(mutex_);
replay_ = en; replay_ = en;
if (shuffle_) { if (shuffle_) {
shuffle_->replay(en); shuffle_->replay(en);
} }
}
notifyChanged(false); notifyChanged(false);
} }

Loading…
Cancel
Save