fix issue when multiple transient files point to different gamepaths

This commit is contained in:
Stanley Dimant
2022-09-16 00:25:07 +02:00
parent c9dc0e8468
commit 574cdb0b24
5 changed files with 30 additions and 16 deletions

View File

@@ -9,6 +9,9 @@ using FFXIVClientStructs.FFXIV.Client.Game.Character;
using System.Collections.Generic;
using System.Linq;
using MareSynchronos.Models;
#if DEBUG
using Newtonsoft.Json;
#endif
namespace MareSynchronos.Managers
{
@@ -236,6 +239,11 @@ namespace MareSynchronos.Managers
CharacterCacheDto? cacheDto = (await CreateFullCharacterCacheDto(token));
if (cacheDto == null || token.IsCancellationRequested) return;
#if DEBUG
var json = JsonConvert.SerializeObject(cacheDto, Formatting.Indented);
Logger.Verbose(json);
#endif
if ((LastCreatedCharacterData?.GetHashCode() ?? 0) == cacheDto.GetHashCode())
{
Logger.Debug("Not sending data, already sent");