Fix issue where a retried upload spawns two stats threads
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user