prevent blanks from skipping ahead in the queue

This commit is contained in:
ed 2022-09-16 23:51:55 +02:00
parent 5152f37ec8
commit 415e61c3c9
2 changed files with 5 additions and 4 deletions

View file

@ -5040,7 +5040,7 @@ var treectl = (function () {
if (r.trunc) {
for (var a = r.lim; a < nodes.length; a++) {
var tn = nodes[a],
tns = Object.keys(tn.tags);
tns = Object.keys(tn.tags || {});
plain.push(uricom_dec(tn.href.split('?')[0]));

View file

@ -1267,9 +1267,7 @@ function up2k_init(subtle) {
st.bytes.total += entry.size;
st.files.push(entry);
if (!entry.size)
push_t(st.todo.handshake, entry);
else if (uc.turbo)
if (uc.turbo)
push_t(st.todo.head, entry);
else
push_t(st.todo.hash, entry);
@ -1713,6 +1711,9 @@ function up2k_init(subtle) {
function exec_hash() {
var t = st.todo.hash.shift();
if (!t.size)
return st.todo.handshake.push(t);
st.busy.hash.push(t);
st.nfile.hash = t.n;
t.t_hashing = Date.now();