Fix Exception for f:close() when f==nil
This commit is contained in:
parent
93cd5bd7c3
commit
b12ec25c8e
2
rc.lua
2
rc.lua
|
@ -188,10 +188,10 @@ function mail_count(filename)
|
||||||
if l == nil then
|
if l == nil then
|
||||||
l = "?"
|
l = "?"
|
||||||
end
|
end
|
||||||
|
f:close()
|
||||||
else
|
else
|
||||||
l = "?"
|
l = "?"
|
||||||
end
|
end
|
||||||
f:close()
|
|
||||||
return l
|
return l
|
||||||
end
|
end
|
||||||
local mail_tmp_path = "/tmp/"..username.."-mail_loop"
|
local mail_tmp_path = "/tmp/"..username.."-mail_loop"
|
||||||
|
|
Loading…
Reference in New Issue