lib/ably/realtime/connection/connection_state_machine.rb in ably-0.8.4 vs lib/ably/realtime/connection/connection_state_machine.rb in ably-0.8.5

- old
+ new

@@ -55,10 +55,10 @@ after_transition(to: [:disconnected, :suspended], from: [:connecting]) do |connection, current_transition| err = error_from_state_change(current_transition) connection.manager.respond_to_transport_disconnected_when_connecting err end - after_transition(to: [:disconnected], from: [:connected]) do |connection, current_transition| + after_transition(to: [:disconnected, :suspended], from: [:connected]) do |connection, current_transition| err = error_from_state_change(current_transition) connection.manager.respond_to_transport_disconnected_whilst_connected err end after_transition(to: [:disconnected, :suspended]) do |connection|