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 try
{ {
if (CachedPlayer != null) return;
_creationSemaphore.Wait(); _creationSemaphore.Wait();
if (CachedPlayer != null) return;
if (dto == null && _onlineUserIdentDto == null) if (dto == null && _onlineUserIdentDto == null)
{ {
CachedPlayer?.Dispose(); CachedPlayer?.Dispose();