From f333aef21ca3ae325b1e729cebe7f468e0b748fb Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 29 Jul 2016 08:21:27 +0200 Subject: [PATCH] SDRdaemonFEC plugin: stop receive UDP loop when plugin stops --- plugins/samplesource/sdrdaemonfec/sdrdaemonfecudphandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecudphandler.cpp b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecudphandler.cpp index 731606c6b..6009902d6 100644 --- a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecudphandler.cpp +++ b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecudphandler.cpp @@ -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);