onedrive: make error quotaLimitReached to be fatal - Fixes #4089

This commit is contained in:
harry 2020-03-25 18:26:38 +05:30 committed by Nick Craig-Wood
parent d9c8c47e02
commit 9aa32bc269
1 changed files with 2 additions and 0 deletions

2
backend/onedrive/onedrive.go Normal file → Executable file
View File

@ -436,6 +436,8 @@ func shouldRetry(resp *http.Response, err error) (bool, error) {
fs.Debugf(nil, "Too many requests. Trying again in %d seconds.", retryAfter)
}
}
case 507: // Insufficient Storage
return false, fserrors.FatalError(err)
}
}
return retry || fserrors.ShouldRetry(err) || fserrors.ShouldRetryHTTP(resp, retryErrorCodes), err