mirror of
https://github.com/ppy/osu.git
synced 2025-03-22 21:00:33 +08:00
Add back update thread verification in RealmContextFactory
This commit is contained in:
parent
b946011292
commit
f43badabf4
@ -135,9 +135,8 @@ namespace osu.Game.Database
|
||||
if (IsDisposed)
|
||||
throw new ObjectDisposedException(nameof(RealmContextFactory));
|
||||
|
||||
// TODO: this can be added for safety once we figure how to bypass in test
|
||||
// if (!ThreadSafety.IsUpdateThread)
|
||||
// throw new InvalidOperationException($"{nameof(BlockAllOperations)} must be called from the update thread.");
|
||||
if (!ThreadSafety.IsUpdateThread)
|
||||
throw new InvalidOperationException($"{nameof(BlockAllOperations)} must be called from the update thread.");
|
||||
|
||||
Logger.Log(@"Blocking realm operations.", LoggingTarget.Database);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user