Skip to content

Commit 1b7b948

Browse files
committed
[grid] Update DefaultSlotSelector
1 parent 049e780 commit 1b7b948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/server/src/org/openqa/selenium/grid/distributor/selector/DefaultSlotSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public Set<SlotId> selectSlot(Capabilities capabilities, Set<NodeStatus> nodes)
5151
// And use the node id as a tie-breaker.
5252
.thenComparing(NodeStatus::getId))
5353
.flatMap(node -> node.getSlots().stream()
54-
.filter(slot -> !slot.getSession().isPresent())
54+
.filter(slot -> slot.getSession()==null)
5555
.filter(slot -> slot.isSupporting(capabilities))
5656
.map(Slot::getId))
5757
.collect(toImmutableSet());

0 commit comments

Comments
 (0)