Merge pull request #9573 from JosJuice/volumeverifier-cancel-crash

VolumeVerifier: Fix potential crash when cancelling
This commit is contained in:
Léo Lam 2021-03-16 11:10:47 +01:00 committed by GitHub
commit f44f20560d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -372,7 +372,10 @@ VolumeVerifier::VolumeVerifier(const Volume& volume, bool redump_verification,
m_redump_verification = false;
}
VolumeVerifier::~VolumeVerifier() = default;
VolumeVerifier::~VolumeVerifier()
{
WaitForAsyncOperations();
}
void VolumeVerifier::Start()
{