mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Block collection loading until realm migration has completed
This commit is contained in:
@ -184,5 +184,11 @@ namespace osu.Game.Database
|
||||
}
|
||||
|
||||
public static string CreateDatabaseConnectionString(string filename, Storage storage) => string.Concat("Data Source=", storage.GetFullPath($@"{filename}", true));
|
||||
|
||||
private readonly ManualResetEventSlim migrationComplete = new ManualResetEventSlim();
|
||||
|
||||
public void SetMigrationCompletion() => migrationComplete.Set();
|
||||
|
||||
public void WaitForMigrationCompletion() => migrationComplete.Wait();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user