From 957483010a1ab54b18b69287185209826e2402dd Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Mon, 10 Jun 2024 17:36:28 +0530 Subject: [PATCH] Reorganized configure_new for connection key and id --- lib/ably/realtime/connection/connection_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ably/realtime/connection/connection_manager.rb b/lib/ably/realtime/connection/connection_manager.rb index be8bdf82..cd62f637 100644 --- a/lib/ably/realtime/connection/connection_manager.rb +++ b/lib/ably/realtime/connection/connection_manager.rb @@ -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 @@ -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