Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 15c02ac

Browse files
author
Kaushik Iska
committed
fix deadlock
1 parent 68ad126 commit 15c02ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/common/layer_tree_holder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ std::unique_ptr<LayerTree> LayerTreeHolder::Get() {
1414
void LayerTreeHolder::ReplaceIfNewer(
1515
std::unique_ptr<LayerTree> proposed_layer_tree) {
1616
std::scoped_lock lock(layer_tree_mutex);
17-
if (IsEmpty() ||
17+
if (!layer_tree_ ||
1818
layer_tree_->target_time() < proposed_layer_tree->target_time()) {
1919
layer_tree_ = std::move(proposed_layer_tree);
2020
}

0 commit comments

Comments
 (0)