MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / handleStreamRemoved

Method handleStreamRemoved

src/models/DaxIqModel.cpp:242–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void DaxIqModel::handleStreamRemoved(quint32 streamId)
243{
244 for (int i = 0; i < NUM_CHANNELS; ++i) {
245 if (m_streams[i].streamId == streamId) {
246 int ch = m_streams[i].channel;
247 m_streams[i] = IqStream{};
248 m_streams[i].channel = ch;
249 QMetaObject::invokeMethod(m_worker, [this, ch] {
250 m_worker->destroyPipe(ch);
251 });
252 emit streamChanged(ch);
253 qCDebug(lcProtocol) << "DaxIqModel: removed IQ stream ch" << ch;
254 return;
255 }
256 }
257}
258
259void DaxIqModel::handleDisconnect()
260{

Callers 2

wireDaxIqMethod · 0.80

Calls 1

destroyPipeMethod · 0.80

Tested by

no test coverage detected