lib/ably/realtime/channel/channel_state_machine.rb in ably-0.8.4 vs lib/ably/realtime/channel/channel_state_machine.rb in ably-0.8.5
- old
+ new
@@ -20,11 +20,12 @@
state state_enum.to_sym, initial: index == 0
end
transition :from => :initialized, :to => [:attaching]
transition :from => :attaching, :to => [:attached, :detaching, :failed]
- transition :from => :attached, :to => [:detaching, :failed]
+ transition :from => :attached, :to => [:detaching, :detached, :failed]
transition :from => :detaching, :to => [:detached, :attaching, :failed]
+ transition :from => :detached, :to => [:attaching, :attached, :failed]
transition :from => :failed, :to => [:attaching]
after_transition do |channel, transition|
channel.synchronize_state_with_statemachine
end