Do not execute background runner if device is suspended (#3608)

This commit is contained in:
Hzj_jie
2018-01-17 00:17:53 -08:00
committed by Frans de Jonge
parent a66d657195
commit 65f26cecbb
3 changed files with 96 additions and 1 deletions

View File

@@ -597,4 +597,11 @@ function util.shell_escape(args)
return table.concat(escaped_args, " ")
end
--- Clear all the elements from a table without reassignment.
--- @table t the table to be cleared
function util.clearTable(t)
local c = #t
for i = 0, c do t[i] = nil end
end
return util