mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00: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