1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-26 20:14:19 -04:00

PlutoSDR: keep device open state consistent after close

Clear the m_open flag when closing PlutoSDR input and output
devices. Previously closeDevice() released m_deviceParams but left
m_open set, leaving the object in an inconsistent state where code
could treat a closed device as still valid.

This was exposed when reloading a running PlutoSDR device, where GUI
updates could access the partially torn-down device state.

Hopefully fixes #2833 (I don't have a windows machine to test).

Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
Robin Getz
2026-07-23 21:31:43 -04:00
parent 2d8182bef2
commit e46f204796
2 changed files with 4 additions and 0 deletions
@@ -363,6 +363,8 @@ void PlutoSDROutput::closeDevice()
delete m_deviceShared.m_deviceParams;
m_deviceShared.m_deviceParams = 0;
}
m_open = false;
}
void PlutoSDROutput::suspendBuddies()
@@ -373,6 +373,8 @@ void PlutoSDRInput::closeDevice()
delete m_deviceShared.m_deviceParams;
m_deviceShared.m_deviceParams = 0;
}
m_open = false;
}
void PlutoSDRInput::suspendBuddies()