mirror of
https://github.com/n5ac/smartsdr-dsp.git
synced 2026-04-09 00:03:46 +00:00
Handle radio disconnect
This commit is contained in:
parent
40920e7c37
commit
74a9ed5a6b
1 changed files with 7 additions and 0 deletions
|
|
@ -122,6 +122,13 @@ namespace CODEC2_GUI
|
|||
|
||||
void API_RadioRemoved(Radio radio)
|
||||
{
|
||||
_radio.SliceAdded -= _radio_SliceAdded;
|
||||
_radio.SliceRemoved -= _radio_SliceRemoved;
|
||||
|
||||
_radio.Disconnect();
|
||||
|
||||
_radio = null;
|
||||
_radioConnected = false;
|
||||
}
|
||||
|
||||
//*************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue