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