diff options
author | onefang | 2020-02-06 14:11:12 +1000 |
---|---|---|
committer | onefang | 2020-02-06 14:11:12 +1000 |
commit | cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387 (patch) | |
tree | 540c93f8d85f1f370dbc970f4951f3a825791450 | |
parent | ERROR if we can't find IPs for a mirror. (diff) | |
download | apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.zip apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.tar.gz apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.tar.bz2 apt-panopticon-cdbbb95cfcfcf43e4c789075ed5ce79ff6d2a387.tar.xz |
Better wait for command startup.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 7 |
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 | ||
1147 | os.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 |