1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-17 23:28:50 -05:00

LimeSDR input: suspend thread for configuration only if in running state

This commit is contained in:
f4exb 2017-04-19 00:09:24 +02:00
parent 3621849027
commit 09981263bc

View File

@ -342,7 +342,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
if (m_deviceShared.m_deviceParams->getDevice() != 0)
{
if (m_limeSDRInputThread && !threadStopped)
if (m_limeSDRInputThread && m_running && !threadStopped)
{
m_limeSDRInputThread->stopWork();
threadStopped = true;
@ -374,7 +374,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
if (m_deviceShared.m_deviceParams->getDevice() != 0)
{
if (m_limeSDRInputThread && !threadStopped)
if (m_limeSDRInputThread && m_running && !threadStopped)
{
m_limeSDRInputThread->stopWork();
threadStopped = true;
@ -407,7 +407,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
if (m_deviceShared.m_deviceParams->getDevice() != 0)
{
if (m_limeSDRInputThread && !threadStopped)
if (m_limeSDRInputThread && m_running && !threadStopped)
{
m_limeSDRInputThread->stopWork();
threadStopped = true;
@ -436,7 +436,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
if (m_deviceShared.m_deviceParams->getDevice() != 0)
{
if (m_limeSDRInputThread && !threadStopped)
if (m_limeSDRInputThread && m_running && !threadStopped)
{
m_limeSDRInputThread->stopWork();
threadStopped = true;
@ -481,7 +481,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
if (m_deviceShared.m_deviceParams->getDevice() != 0)
{
if (m_limeSDRInputThread && !threadStopped)
if (m_limeSDRInputThread && m_running && !threadStopped)
{
m_limeSDRInputThread->stopWork();
threadStopped = true;