Browse Source

Better wait for command startup.

master
onefang 3 years ago
parent
commit
cdbbb95cfc
  1. 7
      apt-panopticon.lua

7
apt-panopticon.lua

@ -1144,7 +1144,12 @@ else
end
end
os.execute('sleep 1') -- Wait for things to start up before checking for them.
while not APT.checkFile('results/LOG_' .. APT.options.referenceSite.value .. '.html') do -- Wait for things to start up before checking for them.
D('Waiting for results/LOG_' .. APT.options.referenceSite.value .. '.html');
os.execute("sleep 5")
-- TODO - count these, and abort if it takes too long.
-- Try something similar for the other "Wait for things to start up before checking for them.", maybe fold it into APT.exe.
end
while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 5") end
local APT_args = APT.args

Loading…
Cancel
Save