mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #1479 from arturadib/fix-driver
Fixing driver.js for Windows bot
This commit is contained in:
commit
921c1e82a3
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