Fix Exception for f:close() when f==nil

This commit is contained in:
Kolan Sh 2014-09-18 10:28:43 +04:00
父節點 93cd5bd7c3
當前提交 b12ec25c8e
共有 1 個檔案被更改,包括 1 行新增1 行删除

2
rc.lua
查看文件

@ -188,10 +188,10 @@ function mail_count(filename)
if l == nil then
l = "?"
end
f:close()
else
l = "?"
end
f:close()
return l
end
local mail_tmp_path = "/tmp/"..username.."-mail_loop"