mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Only lock the database for the duration of a deletion
This commit is contained in:
parent
2519fd26a9
commit
dfaa9531f8
@ -400,8 +400,6 @@ namespace osu.Game.Database
|
||||
|
||||
int i = 0;
|
||||
|
||||
using (ContextFactory.GetForWrite())
|
||||
{
|
||||
foreach (var b in items)
|
||||
{
|
||||
if (notification.State == ProgressNotificationState.Cancelled)
|
||||
@ -414,7 +412,6 @@ namespace osu.Game.Database
|
||||
|
||||
notification.Progress = (float)i / items.Count;
|
||||
}
|
||||
}
|
||||
|
||||
notification.State = ProgressNotificationState.Completed;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user