File tree Expand file tree Collapse file tree
java/src/org/openqa/selenium/grid/distributor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package org .openqa .selenium .grid .distributor ;
1919
20+ import static org .openqa .selenium .grid .data .Availability .DOWN ;
21+ import static org .openqa .selenium .grid .data .Availability .DRAINING ;
22+ import static org .openqa .selenium .grid .data .Availability .UP ;
23+
2024import com .google .common .collect .ImmutableSet ;
25+
2126import org .openqa .selenium .events .EventBus ;
2227import org .openqa .selenium .grid .config .Config ;
2328import org .openqa .selenium .grid .data .Availability ;
4954import java .util .concurrent .locks .ReentrantReadWriteLock ;
5055import java .util .logging .Logger ;
5156
52- import static org .openqa .selenium .grid .data .Availability .DOWN ;
53- import static org .openqa .selenium .grid .data .Availability .DRAINING ;
54- import static org .openqa .selenium .grid .data .Availability .UP ;
55-
5657public class GridModel {
5758
5859 private static final SessionId RESERVED = new SessionId ("reserved" );
@@ -430,9 +431,9 @@ public void setSession(SlotId slotId, Session session) {
430431 return ;
431432 }
432433
433- Session current = maybeSession ;
434- if (! RESERVED . equals ( current . getId ())) {
435- LOG . warning ( "Grid model and reality have diverged. Slot has session and is not reserved. " + slotId );
434+ if (! RESERVED . equals ( maybeSession . getId ())) {
435+ LOG . warning (
436+ "Grid model and reality have diverged. Slot has session and is not reserved. " + slotId );
436437 return ;
437438 }
438439
You can’t perform that action at this time.
0 commit comments