1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

RemoteSinkSender: close socket and use deleteLater instead of delete socket. Fixes #1034

This commit is contained in:
f4exb 2021-11-06 18:53:05 +01:00
parent cd6b19c15e
commit 5fa3613b56
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,8 @@ RemoteSinkSender::RemoteSinkSender() :
RemoteSinkSender::~RemoteSinkSender()
{
qDebug("RemoteSinkSender::~RemoteSinkSender");
delete m_socket;
m_socket->close();
m_socket->deleteLater();
}
RemoteDataBlock *RemoteSinkSender::getDataBlock()

View File

@ -52,7 +52,6 @@ RemoteSinkSink::RemoteSinkSink() :
RemoteSinkSink::~RemoteSinkSink()
{
qDebug("RemoteSinkSink::~RemoteSinkSink");
delete m_remoteSinkSender;
delete m_senderThread;
}
@ -235,4 +234,4 @@ void RemoteSinkSink::applyBasebandSampleRate(uint32_t sampleRate)
double shiftFactor = HBFilterChainConverter::getShiftFactor(m_settings.m_log2Decim, m_settings.m_filterChainHash);
m_frequencyOffset = round(shiftFactor*m_basebandSampleRate);
setTxDelay(m_settings.m_txDelay, m_settings.m_nbFECBlocks, m_settings.m_log2Decim);
}
}