1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 19:50:31 +08:00

Merge pull request #2177 from peppy/api-error-shouldnt-retry

Fix arbitrary API request errors getting identified as timeouts
This commit is contained in:
Dean Herbert
2018-03-07 16:58:54 +09:00
committed by GitHub
Unverified
+1 -1
View File
@@ -199,7 +199,7 @@ namespace osu.Game.Online.API
}
catch (WebException we)
{
HttpStatusCode statusCode = (we.Response as HttpWebResponse)?.StatusCode ?? HttpStatusCode.RequestTimeout;
HttpStatusCode statusCode = (we.Response as HttpWebResponse)?.StatusCode ?? (we.Status == WebExceptionStatus.UnknownError ? HttpStatusCode.NotAcceptable : HttpStatusCode.RequestTimeout);
switch (statusCode)
{