mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Only catch RealmExceptions
to avoid blocking the nested TimeoutException
This commit is contained in:
@ -21,6 +21,7 @@ using osu.Game.Stores;
|
||||
using osu.Game.Rulesets;
|
||||
using osu.Game.Scoring;
|
||||
using Realms;
|
||||
using Realms.Exceptions;
|
||||
|
||||
#nullable enable
|
||||
|
||||
@ -427,7 +428,7 @@ namespace osu.Game.Database
|
||||
throw new TimeoutException(@"Took too long to acquire lock");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (RealmException e)
|
||||
{
|
||||
// Compact may fail if the realm is in a bad state.
|
||||
// We still want to continue with the blocking operation, though.
|
||||
|
Reference in New Issue
Block a user