cancel proper during animation verification

This commit is contained in:
Stanley Dimant
2025-03-15 13:39:27 +01:00
committed by Loporrit
parent d5f22da734
commit e39694f215

View File

@@ -239,12 +239,19 @@ public class PlayerDataFactory
_logger.LogDebug("Removed {amount} of invalid files", removed); _logger.LogDebug("Removed {amount} of invalid files", removed);
} }
ct.ThrowIfCancellationRequested();
if (objectKind == ObjectKind.Player) if (objectKind == ObjectKind.Player)
{ {
try try
{ {
await VerifyPlayerAnimationBones(boneIndices, (fragment as CharacterDataFragmentPlayer)!, ct).ConfigureAwait(false); await VerifyPlayerAnimationBones(boneIndices, (fragment as CharacterDataFragmentPlayer)!, ct).ConfigureAwait(false);
} }
catch (OperationCanceledException e)
{
_logger.LogDebug(e, "Cancelled during player animation verification");
throw;
}
catch (Exception e) catch (Exception e)
{ {
_logger.LogWarning(e, "Failed to verify player animations, continuing without further verification"); _logger.LogWarning(e, "Failed to verify player animations, continuing without further verification");