Fix issue where a retried upload spawns two stats threads

This commit is contained in:
2021-09-15 22:58:27 +02:00
parent 63c5bd5e45
commit ca82b2fb94

View File

@@ -79,7 +79,9 @@ const on_failure = (status, message) => {
export const start = () => {
start_time = new Date().getTime()
if (stats_interval === null) {
stats_interval = setInterval(on_progress, stats_interval_ms)
}
let form = new FormData();
form.append('file', job.file, job.name);