lib/aerospike/connection/authenticate.rb in aerospike-2.21.1 vs lib/aerospike/connection/authenticate.rb in aerospike-2.22.0
- old
+ new
@@ -47,10 +47,10 @@
# always reset session info on errors to be on the safe side
cluster.reset_session_info
if ae.is_a?(Exceptions::Aerospike)
if INVALID_SESSION_ERR.include?(ae.result_code)
command.authenticate_new(conn, cluster)
- return
+ return true
end
end
raise ae
end
end