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,10 +518,14 @@ namespace osu.Game.Screens.Play
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (OperationCanceledException)
|
||||||
|
{
|
||||||
|
// Load has been cancelled. No logging is required.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
catch (Exception e)
|
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!
|
//couldn't load, hard abort!
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user