Don't hold lock on notifyChanged
This commit is contained in:
@@ -318,10 +318,12 @@ 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_);
|
{
|
||||||
replay_ = en;
|
const std::unique_lock<std::shared_mutex> lock(mutex_);
|
||||||
if (shuffle_) {
|
replay_ = en;
|
||||||
shuffle_->replay(en);
|
if (shuffle_) {
|
||||||
|
shuffle_->replay(en);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
notifyChanged(false);
|
notifyChanged(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user