diff options
-rw-r--r-- | util/datamanager.lua | 1 |
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); |