Skip to content

Commit

Permalink
[hotfix] Avoid redundant slot release operations
Browse files Browse the repository at this point in the history
  • Loading branch information
tillrohrmann committed Feb 24, 2018
1 parent 107c8e0 commit 4fc3bcf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,8 @@ public boolean release(Throwable cause) {
if (parent != null) {
// we remove ourselves from our parent if we no longer have children
parent.releaseChild(getGroupId());
} else {
} else if (allTaskSlots.remove(getSlotRequestId()) != null) {
// we are the root node --> remove the root node from the list of task slots
allTaskSlots.remove(getSlotRequestId());

if (!slotContextFuture.isDone() || slotContextFuture.isCompletedExceptionally()) {
synchronized (lock) {
Expand Down

0 comments on commit 4fc3bcf

Please sign in to comment.