Skip to content

Commit

Permalink
Fixed the previously introduced (stupid) issue of missing the unpack …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
starrify committed Apr 4, 2019
1 parent 3a9fc3e commit 00dee4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scripting-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,14 @@ amount of time:
function wait_until(splash, timeout, polling_interval, check_func, ...)
-- XXX: polling_interval shall not be too small
local vargs = ...
local vargs = {...}
local ok, result1, result2 = splash:with_timeout(function()
while true do
local ok, reason = splash:wait(polling_interval)
if not ok then
return ok, string.format('wait failed: %s', reason)
end
local check_result = check_func(vargs)
local check_result = check_func(table.unpack(vargs))
if check_result then
return true, check_result
end
Expand Down

0 comments on commit 00dee4a

Please sign in to comment.