]> cat aescling's git repositories - mastodon.git/commitdiff
Catch warden throw in actioncable
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 3 Oct 2016 17:10:56 +0000 (19:10 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 3 Oct 2016 17:10:56 +0000 (19:10 +0200)
app/channels/application_cable/connection.rb

index 0c4cac875dae6d7687c2596525e19deba6960a60..bdbf528bec3bdf7c203bcb11f36b5fef307892ae 100644 (file)
@@ -16,6 +16,8 @@ module ApplicationCable
       else
         reject_unauthorized_connection
       end
+    rescue :warden
+      reject_unauthorized_connection
     end
   end
 end