av-merge: Retry more than once for timeouts

This commit is contained in:
Astound 2024-03-10 02:08:23 +08:00
parent f010452abf
commit 38d8d5d4c5
Signed by: kaiser
GPG Key ID: 97504AF0027B1A56

View File

@ -569,7 +569,8 @@ function fetchRange(url, start, end, debugInfo) {
onFailure(e, 'Network error');
};
xhr.ontimeout = function (event){
onFailure(null, 'Timeout (15s)', maxRetries=1);
xhr.timeout += 5000;
onFailure(null, 'Timeout (15s)', maxRetries=5);
};
xhr.send();
});