if frame is corrupt, delete and try caching again

This commit is contained in:
itsmattkc
2021-09-30 14:14:10 -07:00
parent 5485ea5750
commit 7e884b55e7
3 changed files with 62 additions and 24 deletions
+3
View File
@@ -242,6 +242,9 @@ FramePtr FrameHashCache::LoadCacheFrame(const QString &fn)
// Clear frame to signal that nothing was loaded
frame = nullptr;
// Assume this frame is corrupt in some way and delete it
QMetaObject::invokeMethod(DiskManager::instance(), "DeleteSpecificFile", Qt::QueuedConnection, Q_ARG(QString, fn));
}
}