Bugfix: stop the streams in the destructor of streammgr to avoid that the signal generator is detructed while the streams are still running
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Anne de Jong 2023-06-18 21:13:09 +02:00
parent 3681e7adac
commit 2420e6cb28
1 changed files with 8 additions and 0 deletions

View File

@ -251,6 +251,14 @@ StreamMgr::~StreamMgr() {
// order in which destructors are called does not matter anymore. As soon as
// the stream manager is destructed, the weak pointers loose there ref, and do
// not have to removeInDataHandler() anymore.
// Stop the streams in this phase, otherwise it might happen during the
// destruction of the Siggen, in which case we might get calls to pure
// virtual methods. This was really a bug.
_inputStream.reset();
_outputStream.reset();
}
void StreamMgr::stopAllStreams() {
DEBUGTRACE_ENTER;