change semaphore-create order

This commit is contained in:
rootdarkarchon
2023-04-30 10:50:01 +02:00
parent bbfd6eb3d3
commit d426e0b428

View File

@@ -92,10 +92,10 @@ public class Pair
{
try
{
if (CachedPlayer != null) return;
_creationSemaphore.Wait();
if (CachedPlayer != null) return;
if (dto == null && _onlineUserIdentDto == null)
{
CachedPlayer?.Dispose();