Set canceled result in scheduleAsync

Was holding up the task completion source, and in consequence,
potentially the entire task chain.
This commit is contained in:
Bartłomiej Dach 2021-01-30 16:13:50 +01:00
parent 9ab1ad25eb
commit c3ba92f057

View File

@ -551,7 +551,10 @@ namespace osu.Game.Online.Multiplayer
Scheduler.Add(() =>
{
if (cancellationToken.IsCancellationRequested)
{
tcs.SetCanceled();
return;
}
try
{