summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua b/Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua
index dbbeb32cc46..a2b692e4588 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/util-sql-imp-library.lua
@@ -156,13 +156,13 @@ local function fetched(specification,query,converter)
okay = true
end
end
- if not okay then
- if connection then
- connection:close()
- end
+ if not okay then -- can go
if session then
session:close()
end
+ if connection then
+ connection:close()
+ end
if id then
cache[id] = nil
end