This commit is contained in:
Erik Frojdh
2020-05-11 19:19:49 +02:00
parent eff664e790
commit ed8d606eb2
3 changed files with 40 additions and 176 deletions

View File

@ -1048,7 +1048,8 @@ int DetectorImpl::acquire() {
}
Parallel(&Module::startAndReadAll, {});
} catch (...) {
Parallel(&Module::stopReceiver, {});
if (receiver)
Parallel(&Module::stopReceiver, {});
throw;
}