# HG changeset patch # User Kim Alvefur # Date 1456436202 -3600 # Node ID 67ac4a0b6e50012d0a4a33d3968503e0d33957e9 # Parent 01bd0ac9cf0c544a95eb8999968ae36159f66122 util.datamanager: Unreference file handle after closing it to prevent trying to close it again (fixes #632) diff -r 01bd0ac9cf0c -r 67ac4a0b6e50 util/datamanager.lua --- a/util/datamanager.lua Wed Jan 27 13:05:58 2016 +0000 +++ b/util/datamanager.lua Thu Feb 25 22:36:42 2016 +0100 @@ -152,6 +152,7 @@ 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);