Fix potentially overwriting user ID from failed request

This commit is contained in:
Salman Ahmed 2021-02-17 07:49:28 +03:00
parent 705e926749
commit 85ebc8e06c

View File

@ -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);