Fix issue where a retried upload spawns two stats threads

This commit is contained in:
Fornax committed 2021-09-15 22:58:27 +02:00
1 parent 63c5bd5e45
commit ca82b2fb94
1 file changed
+3 -1
@@ -79,7 +79,9 @@ const on_failure = (status, message) => {
export const start = () => {
start_time = new Date().getTime()
stats_interval = setInterval(on_progress, stats_interval_ms)
if (stats_interval === null) {
stats_interval = setInterval(on_progress, stats_interval_ms)
}
let form = new FormData();
form.append('file', job.file, job.name);