mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 13:47:01 -04:00
LimeSDR input: suspend thread for configuration only if in running state
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user