bugfix
This commit is contained in:
parent
7e02ed1e06
commit
e7867aabcc
|
@ -153,7 +153,7 @@ function init_modem(options, system, name)
|
|||
system.modem.close(1)
|
||||
end
|
||||
|
||||
function wait_to_start(system)
|
||||
function wait_to_start(options, system)
|
||||
-- double timer because waiting on purpose
|
||||
local timer_id = os.startTimer(options.timeout*2)
|
||||
while true do
|
||||
|
@ -204,7 +204,8 @@ function wait_for_components(options, system, component, name)
|
|||
os.sleep(options.timeout)
|
||||
end
|
||||
|
||||
if wait_to_start(system) then break end
|
||||
-- only continue if server says go
|
||||
if wait_to_start(options, system) then break end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user