change semaphore-create order
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user