mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +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.Rulesets;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
using Realms;
|
using Realms;
|
||||||
|
using Realms.Exceptions;
|
||||||
|
|
||||||
#nullable enable
|
#nullable enable
|
||||||
|
|
||||||
@ -427,7 +428,7 @@ namespace osu.Game.Database
|
|||||||
throw new TimeoutException(@"Took too long to acquire lock");
|
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.
|
// Compact may fail if the realm is in a bad state.
|
||||||
// We still want to continue with the blocking operation, though.
|
// We still want to continue with the blocking operation, though.
|
||||||
|
Reference in New Issue
Block a user