mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
prevent blanks from skipping ahead in the queue
This commit is contained in:
parent
5152f37ec8
commit
415e61c3c9
|
@ -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]));
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue