mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
LimeSDR input: suspend thread for configuration only if in running state
This commit is contained in:
parent
3621849027
commit
09981263bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user