Added fix for avoiding MDNS decoding loops

Fixed error with Lua preferences dumping
Added missing value handling in pool alerts
This commit is contained in:
Luca Deri 2018-03-01 07:11:22 +01:00
parent cb54b9717c
commit 45119bfa98
3 changed files with 6 additions and 3 deletions

View file

@ -31,8 +31,10 @@ function prefs_dump_utils.savePrefsToDisk()
local dump = json.encode(out, nil, 1)
local file = io.open(where, "w")
file:write(dump)
file:close()
if(file ~= nil) then
file:write(dump)
file:close()
end
end
-- ###########################################