mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Do not execute background runner if device is suspended (#3608)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user