mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Fix potentially overwriting user ID from failed request
This commit is contained in:
parent
705e926749
commit
85ebc8e06c
@ -225,11 +225,7 @@ namespace osu.Game.Tournament
|
||||
success?.Invoke();
|
||||
};
|
||||
|
||||
req.Failure += _ =>
|
||||
{
|
||||
user.Id = 1;
|
||||
failure?.Invoke();
|
||||
};
|
||||
req.Failure += _ => failure?.Invoke();
|
||||
|
||||
if (immediate)
|
||||
API.Perform(req);
|
||||
|
Loading…
Reference in New Issue
Block a user