Skip to content

Commit

Permalink
Setting channel serial as per changed state to detached, failed or su…
Browse files Browse the repository at this point in the history
…spended
  • Loading branch information
sacOO7 committed May 21, 2024
1 parent cd96769 commit 13fee33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ably/realtime/channel/channel_state_machine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ChannelStateMachine
end

after_transition(to: [:detached, :failed, :suspended]) do |channel, current_transition|
channel.properties.channel_serial = nil # RTP5a1
err = error_from_state_change(current_transition)
channel.manager.fail_queued_messages(err) if channel.failed? or channel.suspended? #RTL11
channel.manager.log_channel_error err if err
Expand Down

0 comments on commit 13fee33

Please sign in to comment.