1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-03-09 01:29:36 -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

View File

@ -74,8 +74,9 @@ BeamSteeringCWMod::~BeamSteeringCWMod()
);
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
BeamSteeringCWMod::stopSources();
}
@ -83,11 +84,11 @@ void BeamSteeringCWMod::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);
}
}

View File

@ -77,8 +77,9 @@ DOA2::~DOA2()
);
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
DOA2::stopSinks();
}
@ -86,11 +87,11 @@ void DOA2::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);
}
}

View File

@ -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);
}
}