mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
commit
441b63d294
1 changed files with 7 additions and 1 deletions
|
@ -213,6 +213,12 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
DebugHelper.WriteLine("B2 uploader: Too Many Requests, trying with same URL.");
|
DebugHelper.WriteLine("B2 uploader: Too Many Requests, trying with same URL.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else if (uploadResult.RC == 503)
|
||||||
|
{
|
||||||
|
DebugHelper.WriteLine("B2 uploader: Service Unavailable, trying with new URL.");
|
||||||
|
url = null;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
else if (uploadResult.RC != 200)
|
else if (uploadResult.RC != 200)
|
||||||
{
|
{
|
||||||
// something else happened that wasn't a success, so bail out
|
// something else happened that wasn't a success, so bail out
|
||||||
|
@ -678,4 +684,4 @@ public B2Upload(string fileId, string fileName, string accountId, string bucketI
|
||||||
|
|
||||||
#endregion JSON responses
|
#endregion JSON responses
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue