1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 23:27:25 +08:00

Explicitly handle operation cancelled exceptions

This commit is contained in:
Dan Balasescu 2022-06-09 14:35:52 +09:00
parent ec03dc16db
commit 6e450b7350

View File

@ -518,10 +518,14 @@ namespace osu.Game.Screens.Play
return null;
}
}
catch (OperationCanceledException)
{
// Load has been cancelled. No logging is required.
return null;
}
catch (Exception e)
{
if (this.IsCurrentScreen())
Logger.Error(e, "Could not load beatmap successfully!");
Logger.Error(e, "Could not load beatmap successfully!");
//couldn't load, hard abort!
return null;
}