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:
parent
cd6b19c15e
commit
5fa3613b56
@ -53,7 +53,8 @@ RemoteSinkSender::RemoteSinkSender() :
|
||||
RemoteSinkSender::~RemoteSinkSender()
|
||||
{
|
||||
qDebug("RemoteSinkSender::~RemoteSinkSender");
|
||||
delete m_socket;
|
||||
m_socket->close();
|
||||
m_socket->deleteLater();
|
||||
}
|
||||
|
||||
RemoteDataBlock *RemoteSinkSender::getDataBlock()
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user