mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:13:20 +08:00
Use AllowRetryOnTimeout where to maintain previous functionality
This commit is contained in:
parent
b59401357e
commit
f94505243d
@ -99,6 +99,7 @@ namespace osu.Game.Online.API
|
|||||||
throw new TimeoutException(@"API request timeout hit");
|
throw new TimeoutException(@"API request timeout hit");
|
||||||
|
|
||||||
WebRequest = CreateWebRequest();
|
WebRequest = CreateWebRequest();
|
||||||
|
WebRequest.AllowRetryOnTimeout = false;
|
||||||
WebRequest.Headers[@"Authorization"] = $@"Bearer {api.AccessToken}";
|
WebRequest.Headers[@"Authorization"] = $@"Bearer {api.AccessToken}";
|
||||||
|
|
||||||
if (checkAndProcessFailure())
|
if (checkAndProcessFailure())
|
||||||
|
Loading…
Reference in New Issue
Block a user