1
0
Fork 0
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:
Javan Makhmali 2015-07-02 11:52:23 -04:00
parent 10323716a1
commit 5de0103315

View file

@ -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