VolumeVerifier: Fix potential crash when cancelling
The async operations may contain references to class members, so any running async operations must end before destroying the class.
This commit is contained in:
parent
de30559862
commit
96ebf01ea8
|
@ -378,7 +378,10 @@ VolumeVerifier::VolumeVerifier(const Volume& volume, bool redump_verification,
|
|||
m_redump_verification = false;
|
||||
}
|
||||
|
||||
VolumeVerifier::~VolumeVerifier() = default;
|
||||
VolumeVerifier::~VolumeVerifier()
|
||||
{
|
||||
WaitForAsyncOperations();
|
||||
}
|
||||
|
||||
void VolumeVerifier::Start()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue