1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Fixed channel MIMO destructors

This commit is contained in:
f4exb
2025-12-22 19:23:14 +01:00
parent 9ba1f9c3e8
commit 6df81f8a1e
3 changed files with 12 additions and 9 deletions
@@ -96,8 +96,9 @@ Interferometer::~Interferometer()
);
delete m_networkManager;
m_deviceAPI->removeChannelSinkAPI(this);
m_deviceAPI->removeMIMOChannelAPI(this);
m_deviceAPI->removeMIMOChannel(this);
QThread::msleep(100); // let some time for message queues to be processed
Interferometer::stopSinks();
}
@@ -105,11 +106,11 @@ void Interferometer::setDeviceAPI(DeviceAPI *deviceAPI)
{
if (deviceAPI != m_deviceAPI)
{
m_deviceAPI->removeChannelSinkAPI(this);
m_deviceAPI->removeMIMOChannelAPI(this);
m_deviceAPI->removeMIMOChannel(this);
m_deviceAPI = deviceAPI;
m_deviceAPI->addMIMOChannel(this);
m_deviceAPI->addChannelSinkAPI(this);
m_deviceAPI->addMIMOChannelAPI(this);
}
}