mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 20:07:21 +01:00
minor adjustments for potential concurrency issues
This commit is contained in:
parent
1e9161aed5
commit
23abae4c20
3 changed files with 39 additions and 29 deletions
|
|
@ -40,7 +40,7 @@ public class CachedPlayer
|
|||
}
|
||||
}
|
||||
|
||||
private bool _isDisposed = false;
|
||||
private bool _isDisposed = true;
|
||||
private CancellationTokenSource? _downloadCancellationTokenSource = new();
|
||||
|
||||
private string _lastGlamourerData = string.Empty;
|
||||
|
|
@ -206,6 +206,7 @@ public class CachedPlayer
|
|||
}
|
||||
else
|
||||
{
|
||||
Logger.Verbose("Missing file: " + item.Hash);
|
||||
missingFiles.Add(item);
|
||||
}
|
||||
}
|
||||
|
|
@ -397,6 +398,7 @@ public class CachedPlayer
|
|||
|
||||
public void InitializePlayer(PlayerCharacter character, CharacterCacheDto? cache)
|
||||
{
|
||||
if (!_isDisposed) return;
|
||||
Logger.Debug("Initializing Player " + this + " has cache: " + (cache != null));
|
||||
IsVisible = true;
|
||||
PlayerName = character.Name.ToString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue