summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tasklib.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/tasklib.lua b/lib/tasklib.lua
index bfb6cca..e2e8746 100644
--- a/lib/tasklib.lua
+++ b/lib/tasklib.lua
@@ -3,13 +3,9 @@
--
function HttpClient(url)
- return coroutine.yield("HttpClient", url))
+ return coroutine.yield("HttpClient", url)
end
function Command(command, ...)
- return coroutine.yield("Command", command,
- arg[ 1], arg[ 2], arg[ 3], arg[ 4], arg[ 5], arg[ 6], arg[ 7], arg[ 8],
- arg[ 9], arg[10], arg[11], arg[12], arg[13], arg[14], arg[15], arg[16],
- arg[17], arg[18], arg[19], arg[20], arg[21], arg[22], arg[23], arg[24],
- arg[25], arg[26], arg[27], arg[28], arg[29], arg[30], arg[31], arg[32])
+ return coroutine.yield("Command", command, unpack(arg))
end