lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_manager.rb in ably-rest-0.8.1 vs lib/submodules/ably-ruby/lib/ably/realtime/channel/channel_manager.rb in ably-rest-0.8.2
- old
+ new
@@ -44,10 +44,10 @@
end
# An error has occurred on the channel
def emit_error(error)
logger.error "ChannelManager: Channel '#{channel.name}' error: #{error}"
- channel.trigger :error, error
+ channel.emit :error, error
end
# Detach a channel as a result of an error
def suspend(error)
channel.transition_state_machine! :detaching, error