I seem to hit a lot of edge cases if i kill radiomail when connecting. Things I've observed:
- Radio stays keyed up but no audio is transmitted
- Vara sends audio to radio but does not key it
- Vara is not terminated after it fails
It also appears that if the app is backgrounded, it wont continue any operations with the radio, even if background refresh is enabled. This seems to also trigger similar edge cases.
I'm thinking perhaps some robustness updates to ensure vara is killed should do the trick, I'm not sure if that will unkey the radio necessarily. I am keying with ptt over rigctl.
My first thoughts are:
- Check for process still running after a delay from sigterm then send sigkill
- Check for process still running when new connections are received and kill it