Skip to content

Commit

Permalink
GH-113: make sure the ongoing children computation is restarted when …
Browse files Browse the repository at this point in the history
…sorting changes
  • Loading branch information
jisedlac committed Nov 8, 2018
1 parent f134a20 commit 7dd3096
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ public final void willBeSorted() {
}

private boolean updateChildrenOnSort() {
// GH-113: make sure the ongoing children computation is restarted when sorting changes
synchronized (this) { if (currentWorker != null) return true; }

return children != null && children.length > 1 && children[children.length - 1] instanceof MoreNodesNode;
}

Expand Down

0 comments on commit 7dd3096

Please sign in to comment.