Skip to content

Commit

Permalink
Fixed yeild statement inside disconnect and reconnect lamda for chann…
Browse files Browse the repository at this point in the history
…el detach
  • Loading branch information
sacOO7 committed Jul 8, 2024
1 parent 1596829 commit bbabe08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ably/realtime/channel/channel_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ def send_detach_protocol_message(previous_state)
end
end

on_disconnected_and_connected = lambda do
on_disconnected_and_connected = lambda do |&block|
connection.unsafe_once(:disconnected) do
connection.unsafe_once(:connected) do
yield if pending_state_change_timer
block.call if pending_state_change_timer
end if pending_state_change_timer
end
end
Expand Down

0 comments on commit bbabe08

Please sign in to comment.