mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Guard against duplicate subscriptions
This commit is contained in:
parent
10323716a1
commit
5de0103315
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ module ActionCable
|
|||
end
|
||||
|
||||
if subscription_klass
|
||||
subscriptions[id_key] = subscription_klass.new(connection, id_key, id_options)
|
||||
subscriptions[id_key] ||= subscription_klass.new(connection, id_key, id_options)
|
||||
else
|
||||
logger.error "Subscription class not found (#{data.inspect})"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue