Skip to content

Commit 37bc924

Browse files
authored
fix: respect given url every time (#562)
1 parent 229d472 commit 37bc924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/appium_lib_core/driver.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def setup_for_new_session(opts = {})
394394

395395
def start_driver(server_url: nil,
396396
http_client_ops: { http_client: nil, open_timeout: 999_999, read_timeout: 999_999 })
397-
@custom_url ||= server_url || "http://127.0.0.1:#{@port}/wd/hub"
397+
@custom_url = server_url || "http://127.0.0.1:#{@port}/wd/hub"
398398

399399
@http_client = get_http_client http_client: http_client_ops.delete(:http_client),
400400
open_timeout: http_client_ops.delete(:open_timeout),

0 commit comments

Comments
 (0)