lib/ably/realtime/connection/connection_state_machine.rb in ably-1.1.7 vs lib/ably/realtime/connection/connection_state_machine.rb in ably-1.1.8
- old
+ new
@@ -34,9 +34,13 @@
after_transition(to: [:connecting], from: [:initialized, :closed, :failed]) do |connection|
connection.manager.setup_transport
end
+ after_transition(to: [:connecting], from: [:failed]) do |connection|
+ connection.manager.reintialize_failed_chanels
+ end
+
after_transition(to: [:connecting], from: [:disconnected, :suspended]) do |connection|
connection.manager.reconnect_transport
end
before_transition(to: [:connected]) do |connection, current_transition|