mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 22:35:23 +08:00
Reduce time waited on a score submission token from 60 to 30s
This commit is contained in:
parent
2fb93fd46c
commit
e4d134a820
@ -85,7 +85,7 @@ namespace osu.Game.Screens.Play
|
|||||||
api.Queue(req);
|
api.Queue(req);
|
||||||
|
|
||||||
// Generally a timeout would not happen here as APIAccess will timeout first.
|
// Generally a timeout would not happen here as APIAccess will timeout first.
|
||||||
if (!tcs.Task.Wait(60000))
|
if (!tcs.Task.Wait(30000))
|
||||||
req.TriggerFailure(new InvalidOperationException("Token retrieval timed out (request never run)"));
|
req.TriggerFailure(new InvalidOperationException("Token retrieval timed out (request never run)"));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user