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