Skip to content

Commit 178b5d2

Browse files
committed
[javascript] Reverting commit 4e62dd5
Fixes #10499
1 parent 468b5e3 commit 178b5d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎javascript/node/selenium-webdriver/chromium.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,12 @@ class Driver extends webdriver.WebDriver {
661661
*/
662662
static createSession(caps, opt_serviceExecutor) {
663663
let executor
664-
let onQuit
665664
if (opt_serviceExecutor instanceof http.Executor) {
666665
executor = opt_serviceExecutor
667666
configureExecutor(executor, this.VENDOR_COMMAND_PREFIX)
668667
} else {
669668
let service = opt_serviceExecutor || this.getDefaultService()
670669
executor = createExecutor(service.start(), this.VENDOR_COMMAND_PREFIX)
671-
onQuit = () => service.kill()
672670
}
673671

674672
// W3C spec requires noProxy value to be an array of strings, but Chromium
@@ -681,7 +679,7 @@ class Driver extends webdriver.WebDriver {
681679
}
682680
}
683681

684-
return /** @type {!Driver} */ (super.createSession(executor, caps, onQuit))
682+
return /** @type {!Driver} */ (super.createSession(executor, caps))
685683
}
686684

687685
/**

0 commit comments

Comments
 (0)