Skip to content

Commit

Permalink
SDRdaemonFEC plugin: stop receive UDP loop when plugin stops
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Jul 29, 2016
1 parent 59a9bb0 commit f333aef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f333aef

Please sign in to comment.