mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 13:47:50 -04:00
SDRdaemonFEC plugin: stop receive UDP loop when plugin stops
This commit is contained in:
parent
59a9bb0a8e
commit
f333aef21c
@ -131,7 +131,7 @@ void SDRdaemonFECUDPHandler::dataReadyRead()
|
|||||||
{
|
{
|
||||||
m_udpReadBytes = 0;
|
m_udpReadBytes = 0;
|
||||||
|
|
||||||
while (m_dataSocket->hasPendingDatagrams())
|
while (m_dataSocket->hasPendingDatagrams() && m_dataConnected)
|
||||||
{
|
{
|
||||||
qint64 pendingDataSize = m_dataSocket->pendingDatagramSize();
|
qint64 pendingDataSize = m_dataSocket->pendingDatagramSize();
|
||||||
m_udpReadBytes += m_dataSocket->readDatagram(&m_udpBuf[m_udpReadBytes], pendingDataSize, &m_remoteAddress, 0);
|
m_udpReadBytes += m_dataSocket->readDatagram(&m_udpBuf[m_udpReadBytes], pendingDataSize, &m_remoteAddress, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user