tus: Fix upload not found
scenario (#1808)
## Steps
When it upload reaches 100%, click Cancel (not refresh).
## Issue
There was an old hack in b0509bc9
where we decided to wait a while before sending `notify` as the server was not responsive. Since the task was dispatched before the Cancel action, the server cleared the upload first and later received the `notify`.
## Change
Instead of trying to cancel the timer, I think the hack is no longer needed given the throughput and lock fixes. With things running back in sequential mode, the Cancel button will now just show the "upload already completed" modal.
This commit is contained in:
parent
acabdb6325
commit
cdcf7e7772
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ export function makeResumableUploadRequest(
|
|||
xhr.send(jsonPayload);
|
||||
}
|
||||
|
||||
setTimeout(() => makeNotifyRequest(), 15000);
|
||||
makeNotifyRequest();
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue