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

This commit is contained in:
Anne de Jong 2023-06-18 21:13:09 +02:00
parent 3681e7adac
commit 2420e6cb28

View File

@ -251,6 +251,14 @@ StreamMgr::~StreamMgr() {
// order in which destructors are called does not matter anymore. As soon as // 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 // the stream manager is destructed, the weak pointers loose there ref, and do
// not have to removeInDataHandler() anymore. // 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() { void StreamMgr::stopAllStreams() {
DEBUGTRACE_ENTER; DEBUGTRACE_ENTER;