mirror of
https://github.com/osukey/osukey.git
synced 2025-07-05 02:09:54 +09:00
Null disposal token after use
This commit is contained in:
@ -133,6 +133,8 @@ namespace osu.Game.Database
|
|||||||
Task.Factory.StartNew(() =>
|
Task.Factory.StartNew(() =>
|
||||||
{
|
{
|
||||||
realm.CreateBackup(Path.Combine(backup_folder, $"client.{backupSuffix}.realm"), realmBlockOperations);
|
realm.CreateBackup(Path.Combine(backup_folder, $"client.{backupSuffix}.realm"), realmBlockOperations);
|
||||||
|
realmBlockOperations = null;
|
||||||
|
|
||||||
efContextFactory.CreateBackup(Path.Combine(backup_folder, $"client.{backupSuffix}.db"));
|
efContextFactory.CreateBackup(Path.Combine(backup_folder, $"client.{backupSuffix}.db"));
|
||||||
|
|
||||||
using (var ef = efContextFactory.Get())
|
using (var ef = efContextFactory.Get())
|
||||||
@ -218,7 +220,7 @@ namespace osu.Game.Database
|
|||||||
// If we were to not do this, the migration would run another time the next time the user starts the game.
|
// If we were to not do this, the migration would run another time the next time the user starts the game.
|
||||||
deletePreRealmData();
|
deletePreRealmData();
|
||||||
|
|
||||||
realmBlockOperations.Dispose();
|
realmBlockOperations?.Dispose();
|
||||||
|
|
||||||
migrationCompleted.SetResult(true);
|
migrationCompleted.SetResult(true);
|
||||||
efContextFactory.SetMigrationCompletion();
|
efContextFactory.SetMigrationCompletion();
|
||||||
|
Reference in New Issue
Block a user