Fix serialisation: breach of contract, file left open
Previous commit did not fix saving, but is kept because there is a corner case for which it is required (see MT forum)
This commit is contained in:
parent
ed165e1b17
commit
cdad238183
|
@ -190,6 +190,7 @@ local function write_to_fd(root_table, file, config)
|
||||||
file:write("LUA_SER v=1\n")
|
file:write("LUA_SER v=1\n")
|
||||||
write_table(root_table, file, config)
|
write_table(root_table, file, config)
|
||||||
file:write("E\nEND_SER\n")
|
file:write("E\nEND_SER\n")
|
||||||
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Reads the file contents from the passed file descriptor and returns the table on success
|
-- Reads the file contents from the passed file descriptor and returns the table on success
|
||||||
|
|
Loading…
Reference in New Issue