mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
driver.js: retry POST until successful
This commit is contained in:
parent
512997a5af
commit
6d9e045413
1 changed files with 3 additions and 0 deletions
|
@ -266,6 +266,9 @@ function sendTaskResult(snapshot, task, failure) {
|
|||
r.onreadystatechange = function sendTaskResultOnreadystatechange(e) {
|
||||
if (r.readyState == 4) {
|
||||
inFlightRequests--;
|
||||
// Retry until successful
|
||||
if (r.status !== 200)
|
||||
sendTaskResult(snapshot, task, failure);
|
||||
}
|
||||
};
|
||||
document.getElementById('inFlightCount').innerHTML = inFlightRequests++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue