diff options
-rw-r--r-- | lib/action_cable/connection/subscriptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/subscriptions.rb b/lib/action_cable/connection/subscriptions.rb index 2672279828..24ab1bdfbf 100644 --- a/lib/action_cable/connection/subscriptions.rb +++ b/lib/action_cable/connection/subscriptions.rb @@ -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 |