mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:43:20 +08:00
Fix regression in implementation of fix
This commit is contained in:
parent
23fded4a3a
commit
0bcfb8e199
@ -160,6 +160,7 @@ namespace osu.Game.Database
|
||||
if (!currentThreadCanCreateContexts.Value)
|
||||
{
|
||||
contextCreationLock.Wait();
|
||||
currentThreadCanCreateContexts.Value = true;
|
||||
tookSemaphoreLock = true;
|
||||
}
|
||||
else
|
||||
@ -167,7 +168,6 @@ namespace osu.Game.Database
|
||||
// the semaphore is used to handle blocking of all context creation during certain periods.
|
||||
// once the semaphore has been taken by this code section, it is safe to create further contexts on the same thread.
|
||||
// this can happen if a realm subscription is active and triggers a callback which has user code that calls `CreateContext`.
|
||||
currentThreadCanCreateContexts.Value = true;
|
||||
}
|
||||
|
||||
contexts_created.Value++;
|
||||
|
Loading…
Reference in New Issue
Block a user