|
@@ -5919,7 +5919,7 @@ namespace AssetProcessor
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- bool AssetProcessorManager::IsDelayProcessTimerElapsed(qint64 elapsedTime)
|
|
|
+ bool AssetProcessorManager::HasDelayProcessTimerElapsed(qint64 elapsedTime)
|
|
|
{
|
|
|
// QTimer is not a precise timer, it could fire several milliseconds before or after the required wait time.
|
|
|
// Just check if the elapsed time is relatively close; 30ms is arbitrary but should be sufficient.
|
|
@@ -5971,7 +5971,7 @@ namespace AssetProcessor
|
|
|
if (m_delayProcessMetadataFiles.contains(absolutePath))
|
|
|
{
|
|
|
auto duration = m_delayProcessMetadataFiles[absolutePath].msecsTo(QDateTime::currentDateTime());
|
|
|
- if (!IsDelayProcessTimerElapsed(duration))
|
|
|
+ if (!HasDelayProcessTimerElapsed(duration))
|
|
|
{
|
|
|
// Event 7: Already waiting on file, keep waiting
|
|
|
if (!m_delayProcessMetadataQueued)
|
|
@@ -6024,7 +6024,7 @@ namespace AssetProcessor
|
|
|
{
|
|
|
auto duration = time.msecsTo(now);
|
|
|
|
|
|
- if (IsDelayProcessTimerElapsed(duration))
|
|
|
+ if (HasDelayProcessTimerElapsed(duration))
|
|
|
{
|
|
|
// Times up, process it
|
|
|
auto* fileStateCache = AZ::Interface<IFileStateRequests>::Get();
|