aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-25 22:37:41 +0100
committerKim Alvefur <zash@zash.se>2016-02-25 22:37:41 +0100
commitd17785e91f5a14942de3257207f3f2d058162467 (patch)
treec296ef2b89bd5fac3f1ee1eae5a627c921b375ce
parent9eda046093639bd46aa77d554e7e8aa90a5c1d18 (diff)
parentfc2ad03510cab182ac83ac8aaf6d9ce66acdec87 (diff)
downloadprosody-d17785e91f5a14942de3257207f3f2d058162467.tar.gz
prosody-d17785e91f5a14942de3257207f3f2d058162467.zip
Merge 0.9->0.10
-rw-r--r--util/datamanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 83f3dd13..07b2fe4a 100644
--- 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);