aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-02-06 14:11:12 +1000
committeronefang2020-02-06 14:11:12 +1000
commitcdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387 (patch)
tree540c93f8d85f1f370dbc970f4951f3a825791450
parentERROR if we can't find IPs for a mirror. (diff)
downloadapt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.zip
apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.tar.gz
apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.tar.bz2
apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.tar.xz
Better wait for command startup.
-rwxr-xr-xapt-panopticon.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 793a80f..a36b229 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -1144,7 +1144,12 @@ else
1144 end 1144 end
1145 end 1145 end
1146 1146
1147os.execute('sleep 1') -- Wait for things to start up before checking for them. 1147 while not APT.checkFile('results/LOG_' .. APT.options.referenceSite.value .. '.html') do -- Wait for things to start up before checking for them.
1148 D('Waiting for results/LOG_' .. APT.options.referenceSite.value .. '.html');
1149 os.execute("sleep 5")
1150-- TODO - count these, and abort if it takes too long.
1151 -- Try something similar for the other "Wait for things to start up before checking for them.", maybe fold it into APT.exe.
1152 end
1148 while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 5") end 1153 while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 5") end
1149 1154
1150 local APT_args = APT.args 1155 local APT_args = APT.args