1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Merge pull request #744 from srcejon/pipes

Fix crash in pipe garbage collection
This commit is contained in:
Edouard Griffiths 2021-01-08 17:51:55 +01:00 committed by GitHub
commit e61fffbd28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -121,7 +121,8 @@ public:
QList<Consumer*>& consumers = cIt.value();
for (int i = 0; i < consumers.size(); i++) {
sendMessageToConsumer(m_elements->operator[](producerKey)[i], producerKey, consumers[i]);
if (existsConsumer(consumers[i]))
sendMessageToConsumer(m_elements->operator[](producerKey)[i], producerKey, consumers[i]);
}
}
}

View File

@ -59,7 +59,7 @@ public:
}
else
{
typeId++;
typeId = m_typeCount++;
m_typeIds.insert(type, typeId);
}