Skip to content

Commit 33f4353

Browse files
committed
Fix invalidateAll in any case
1 parent dffa806 commit 33f4353

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

java/src/org/openqa/selenium/grid/node/local/LocalNode.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -855,10 +855,8 @@ public void stop(SessionId id) throws NoSuchSessionException {
855855
}
856856

857857
private void stopAllSessions() {
858-
if (currentSessions.estimatedSize() > 0) {
859-
LOG.info("Trying to stop all running sessions before shutting down...");
860-
currentSessions.invalidateAll();
861-
}
858+
LOG.info("Trying to stop all running sessions before shutting down...");
859+
currentSessions.invalidateAll();
862860
}
863861

864862
private Session createExternalSession(

0 commit comments

Comments
 (0)