mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-14 21:34:14 +01:00
move building character data to main framework thread
This commit is contained in:
parent
6bf16e1d56
commit
f785288971
3 changed files with 17 additions and 4 deletions
|
|
@ -119,7 +119,7 @@ namespace MareSynchronos.Managers
|
|||
foreach (var unprocessedObject in playerRelatedObjects.Where(c => c.HasUnprocessedUpdate).ToList())
|
||||
{
|
||||
Logger.Verbose("Building Cache for " + unprocessedObject.ObjectKind);
|
||||
PermanentDataCache = _characterDataFactory.BuildCharacterData(PermanentDataCache, unprocessedObject.ObjectKind, unprocessedObject.Address, token);
|
||||
PermanentDataCache = await _characterDataFactory.BuildCharacterData(PermanentDataCache, unprocessedObject.ObjectKind, unprocessedObject.Address, token);
|
||||
if (!token.IsCancellationRequested)
|
||||
{
|
||||
unprocessedObject.HasUnprocessedUpdate = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue