Shutdown threads before the rig is closed

pull/1336/head
Mike Black W9MDB 2023-07-11 08:36:09 -05:00
rodzic b37e9877bd
commit a5034b88ab
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1518,6 +1518,9 @@ int HAMLIB_API rig_close(RIG *rig)
RETURNFUNC(-RIG_EINVAL);
}
morse_data_handler_stop(rig);
async_data_handler_stop(rig);
/*
* Let the backend say 73s to the rig.
* and ignore the return code.
@ -1527,8 +1530,6 @@ int HAMLIB_API rig_close(RIG *rig)
caps->rig_close(rig);
}
morse_data_handler_stop(rig);
async_data_handler_stop(rig);
/*
* FIXME: what happens if PTT and rig ports are the same?