mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 02:23:10 +08:00
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:
parent
9ab1ad25eb
commit
c3ba92f057
@ -551,7 +551,10 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
Scheduler.Add(() =>
|
Scheduler.Add(() =>
|
||||||
{
|
{
|
||||||
if (cancellationToken.IsCancellationRequested)
|
if (cancellationToken.IsCancellationRequested)
|
||||||
|
{
|
||||||
|
tcs.SetCanceled();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user