We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de385e2 commit 8c68153Copy full SHA for 8c68153
lib/ferrum/context.rb
@@ -61,8 +61,8 @@ def add_target(params:, session_id: nil)
61
new_target = Target.new(@client, session_id, params)
62
# `put_if_absent` returns nil if added a new value or existing if there was one already
63
target = @targets.put_if_absent(new_target.id, new_target) || new_target
64
- # on first iteration session_id may be null, then if session is present here we must set it to the target
65
- target.session_id = session_id if session_id
+ # on first iteration session_id may be nil, then if session is present here we must set it to the target
+ target.session_id = session_id if session_id && target.session_id.nil?
66
@default_target ||= target
67
68
new_pending = Concurrent::IVar.new
0 commit comments