mirror of
https://github.com/ppy/osu
synced 2025-02-10 15:17:32 +00:00
Explicitly handle operation cancelled exceptions
This commit is contained in:
parent
ec03dc16db
commit
6e450b7350
@ -518,9 +518,13 @@ 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!");
|
||||
//couldn't load, hard abort!
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user