fix: add 3 second pause between upload retries
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e38c55988c
commit
d972e0e913
@ -373,11 +373,14 @@ class UploadManager extends EventEmitter {
|
|||||||
|
|
||||||
if (isSpeedRestart && attempt < maxAttempts) {
|
if (isSpeedRestart && attempt < maxAttempts) {
|
||||||
lastError = new Error('Geschwindigkeit zu niedrig - Neustart');
|
lastError = new Error('Geschwindigkeit zu niedrig - Neustart');
|
||||||
|
await this._sleep(3000, signal);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
lastError = err;
|
lastError = err;
|
||||||
if (attempt >= maxAttempts) break;
|
if (attempt >= maxAttempts) break;
|
||||||
|
// Wait 3 seconds before retry
|
||||||
|
await this._sleep(3000, signal);
|
||||||
} finally {
|
} finally {
|
||||||
if (speedMonitor) clearInterval(speedMonitor);
|
if (speedMonitor) clearInterval(speedMonitor);
|
||||||
uploadSignalBundle.cleanup();
|
uploadSignalBundle.cleanup();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user