1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-15 07:43:21 +00:00

Update duplicacy_gcdstorage.go

Add automatic retry on receiving error 408 (request timeout) from Google Drive.
This commit is contained in:
turtleleo
2019-01-16 13:12:46 -05:00
committed by GitHub
parent bebd7c4b77
commit 82c6c15f1c

View File

@@ -78,6 +78,10 @@ func (storage *GCDStorage) shouldRetry(threadIndex int, err error) (bool, error)
// User Rate Limit Exceeded
message = e.Message
retry = true
} else if e.Code == 408 {
// Request timeout
message = e.Message
retry = true
} else if e.Code == 401 {
// Only retry on authorization error when storage has been connected before
if storage.isConnected {