mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
faster turbo
This commit is contained in:
parent
a3ecbf0ae7
commit
252c3a7985
|
@ -1383,8 +1383,11 @@ function up2k_init(subtle) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
apop(st.busy.head, t);
|
apop(st.busy.head, t);
|
||||||
if (!ok && !t.srch)
|
if (!ok && !t.srch) {
|
||||||
return push_t(st.todo.hash, t);
|
push_t(st.todo.hash, t);
|
||||||
|
tasker();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
t.done = true;
|
t.done = true;
|
||||||
st.bytes.hashed += t.size;
|
st.bytes.hashed += t.size;
|
||||||
|
@ -1393,6 +1396,7 @@ function up2k_init(subtle) {
|
||||||
pvis.seth(t.n, 1, ok ? 'YOLO' : '404');
|
pvis.seth(t.n, 1, ok ? 'YOLO' : '404');
|
||||||
pvis.seth(t.n, 2, "turbo'd");
|
pvis.seth(t.n, 2, "turbo'd");
|
||||||
pvis.move(t.n, ok ? 'ok' : 'ng');
|
pvis.move(t.n, ok ? 'ok' : 'ng');
|
||||||
|
tasker();
|
||||||
};
|
};
|
||||||
xhr.onload = function (e) {
|
xhr.onload = function (e) {
|
||||||
try { orz(e); } catch (ex) { vis_exh(ex + '', '', '', '', ex); }
|
try { orz(e); } catch (ex) { vis_exh(ex + '', '', '', '', ex); }
|
||||||
|
|
Loading…
Reference in a new issue