1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

SDRdaemonFEC plugin: stop receive UDP loop when plugin stops

This commit is contained in:
f4exb 2016-07-29 08:21:27 +02:00
parent 59a9bb0a8e
commit f333aef21c

View File

@ -131,7 +131,7 @@ void SDRdaemonFECUDPHandler::dataReadyRead()
{
m_udpReadBytes = 0;
while (m_dataSocket->hasPendingDatagrams())
while (m_dataSocket->hasPendingDatagrams() && m_dataConnected)
{
qint64 pendingDataSize = m_dataSocket->pendingDatagramSize();
m_udpReadBytes += m_dataSocket->readDatagram(&m_udpBuf[m_udpReadBytes], pendingDataSize, &m_remoteAddress, 0);