lib/async_cable/server.rb in async_cable-0.2.1 vs lib/async_cable/server.rb in async_cable-0.2.2

- old
+ new

@@ -26,10 +26,10 @@ end rescue Protocol::WebSocket::ProtocolError => error logger.debug { "#{self.class}#call rescue #{error.class} message=#{error.message} code=#{error.code}" } connection.close_code = error.code connection.close_reason = error.message - rescue AsyncCable::Connection::Error => error + rescue AsyncCable::Errors::Error => error connection.close_code = error.code connection.close_reason = error.message ensure logger.debug { "#{self.class}#call connection closed" } connection.handle_close