projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33b9ee1
)
util.datamanager: Unreference file handle after closing it to prevent trying to close...
author
Kim Alvefur
<zash@zash.se>
Thu, 25 Feb 2016 21:36:42 +0000
(22:36 +0100)
committer
Kim Alvefur
<zash@zash.se>
Thu, 25 Feb 2016 21:36:42 +0000
(22:36 +0100)
util/datamanager.lua
patch
|
blob
|
history
diff --git
a/util/datamanager.lua
b/util/datamanager.lua
index a107d95c26904a697a949157f8caa706ca46a696..c69ecd25dd3815a4db14a05285f73ac72bf1360d 100644
(file)
--- a/
util/datamanager.lua
+++ b/
util/datamanager.lua
@@
-152,6
+152,7
@@
local function atomic_store(filename, data)
if not ok then break end
ok, msg = f:close();
+ f = nil; -- no longer valid
if not ok then break end
return os_rename(scratch, filename);