Skip to content

Commit

Permalink
Reorganized configure_new for connection key and id
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jun 10, 2024
1 parent 446166a commit 9574830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ably/realtime/connection/connection_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def connected(protocol_message)
connection.reset_client_msg_serial
end
client.disable_automatic_connection_recovery # RTN16k, explicitly setting null, so it won't be used for subsequent connection requests
connection.configure_new protocol_message.connection_id, protocol_message.connection_details.connection_key

if connection.key
if protocol_message.connection_id == connection.id
Expand All @@ -134,6 +133,7 @@ def connected(protocol_message)
logger.debug { "ConnectionManager: New connection created with ID #{protocol_message.connection_id} and key #{protocol_message.connection_details.connection_key}" }
end

connection.configure_new protocol_message.connection_id, protocol_message.connection_details.connection_key
force_reattach_on_channels protocol_message.error # irrespective of connection success/failure, reattach channels
end

Expand Down

0 comments on commit 9574830

Please sign in to comment.