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:
Stanley Dimant
2022-07-12 01:29:22 +02:00
parent 4959633242
commit 0ba07b9b67
5 changed files with 18 additions and 7 deletions

View File

@@ -292,7 +292,7 @@ namespace MareSynchronos.WebAPI
{
Logger.Debug("Connection restored");
await Task.Delay(TimeSpan.FromSeconds(new Random().Next(5, 10)));
_connectionDto = _connectionHub!.InvokeAsync<ConnectionDto>(ConnectionHubAPI.InvokeHeartbeat, _dalamudUtil.PlayerNameHashed).Result;
_connectionDto = await _connectionHub!.InvokeAsync<ConnectionDto>(ConnectionHubAPI.InvokeHeartbeat, _dalamudUtil.PlayerNameHashed);
Connected?.Invoke();
}