From c3ffef8bb2357d981ab7066883651143166fc75c Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Thu, 30 Jan 2025 16:03:11 +0000 Subject: [PATCH] log a warning instead of throwing an error if the environment is already closed --- src/env.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env.jl b/src/env.jl index ec358dd..7c060ab 100644 --- a/src/env.jl +++ b/src/env.jl @@ -60,7 +60,7 @@ end """Close the environment and release the memory map""" function close(env::Environment) if env.handle == C_NULL - throw(LMDBError(-1,"Environment is already closed")) + @warn "Environment is already closed" handle=env.handle path=env.path end _mdb_env_close(env.handle) env.handle = C_NULL