Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3d30e5e

Browse files
committedOct 13, 2016
override stopClient without params in FirefoxDriver
This enables us to ensure we call quit on the Legacy FirefoxDriver And thus cleans up the temporary file system. Fixes #2914 Fixes #2908
1 parent aed9a77 commit 3d30e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎java/client/src/org/openqa/selenium/firefox/FirefoxDriver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,8 @@ protected Lock obtainLock(FirefoxProfile profile) {
384384
}
385385

386386
@Override
387-
protected void stopClient(Capabilities desiredCapabilities, Capabilities requiredCapabilities) {
388-
if (isLegacy(desiredCapabilities)) {
387+
protected void stopClient() {
388+
if (this.getCommandExecutor() instanceof LazyCommandExecutor) {
389389
((LazyCommandExecutor) this.getCommandExecutor()).quit();
390390
}
391391
}

0 commit comments

Comments
 (0)
Please sign in to comment.