mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-01 04:37:52 -04: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_deviceShared.m_deviceParams->getDevice() != 0)
|
||||||
{
|
{
|
||||||
if (m_limeSDRInputThread && !threadStopped)
|
if (m_limeSDRInputThread && m_running && !threadStopped)
|
||||||
{
|
{
|
||||||
m_limeSDRInputThread->stopWork();
|
m_limeSDRInputThread->stopWork();
|
||||||
threadStopped = true;
|
threadStopped = true;
|
||||||
@ -374,7 +374,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
|||||||
|
|
||||||
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
||||||
{
|
{
|
||||||
if (m_limeSDRInputThread && !threadStopped)
|
if (m_limeSDRInputThread && m_running && !threadStopped)
|
||||||
{
|
{
|
||||||
m_limeSDRInputThread->stopWork();
|
m_limeSDRInputThread->stopWork();
|
||||||
threadStopped = true;
|
threadStopped = true;
|
||||||
@ -407,7 +407,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
|||||||
|
|
||||||
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
||||||
{
|
{
|
||||||
if (m_limeSDRInputThread && !threadStopped)
|
if (m_limeSDRInputThread && m_running && !threadStopped)
|
||||||
{
|
{
|
||||||
m_limeSDRInputThread->stopWork();
|
m_limeSDRInputThread->stopWork();
|
||||||
threadStopped = true;
|
threadStopped = true;
|
||||||
@ -436,7 +436,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
|||||||
|
|
||||||
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
||||||
{
|
{
|
||||||
if (m_limeSDRInputThread && !threadStopped)
|
if (m_limeSDRInputThread && m_running && !threadStopped)
|
||||||
{
|
{
|
||||||
m_limeSDRInputThread->stopWork();
|
m_limeSDRInputThread->stopWork();
|
||||||
threadStopped = true;
|
threadStopped = true;
|
||||||
@ -481,7 +481,7 @@ bool LimeSDRInput::applySettings(const LimeSDRInputSettings& settings, bool forc
|
|||||||
|
|
||||||
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
if (m_deviceShared.m_deviceParams->getDevice() != 0)
|
||||||
{
|
{
|
||||||
if (m_limeSDRInputThread && !threadStopped)
|
if (m_limeSDRInputThread && m_running && !threadStopped)
|
||||||
{
|
{
|
||||||
m_limeSDRInputThread->stopWork();
|
m_limeSDRInputThread->stopWork();
|
||||||
threadStopped = true;
|
threadStopped = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user