mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-15 03:14:15 +01:00
fix connectivity issue on server loss, fix filecache not updating on changed files, fix crash on exception in character data factory
This commit is contained in:
parent
4959633242
commit
0ba07b9b67
5 changed files with 18 additions and 7 deletions
|
|
@ -96,6 +96,7 @@ namespace MareSynchronos.Managers
|
|||
private async Task<CharacterCacheDto?> CreateFullCharacterCache(CancellationToken token)
|
||||
{
|
||||
var cache = _characterDataFactory.BuildCharacterData();
|
||||
if (cache == null) return null;
|
||||
CharacterCacheDto? cacheDto = null;
|
||||
|
||||
await Task.Run(async () =>
|
||||
|
|
@ -165,9 +166,9 @@ namespace MareSynchronos.Managers
|
|||
|
||||
_dalamudUtil.WaitWhileSelfIsDrawing(token);
|
||||
|
||||
var characterCache = (await CreateFullCharacterCache(token))!;
|
||||
var characterCache = (await CreateFullCharacterCache(token));
|
||||
|
||||
if (token.IsCancellationRequested) return;
|
||||
if (characterCache == null || token.IsCancellationRequested) return;
|
||||
|
||||
if (characterCache.Hash == (LastSentCharacterData?.Hash ?? "-"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue