Unkey rig if program exits while transmitting.

This will not help if the program crashes, but at least graceful exits
will not leave the rig in TX.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3984 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2014-04-06 21:57:59 +00:00
parent 2b966c14d1
commit dbda79e7a2

View File

@ -35,6 +35,10 @@ void TransceiverBase::start () noexcept
{
if (m_->state_.online ())
{
// ensure PTT isn't left set
do_ptt (false);
do_post_ptt (false);
do_stop ();
do_post_stop ();
m_->state_.online (false);
@ -62,6 +66,13 @@ void TransceiverBase::stop () noexcept
QString message;
try
{
if (m_->state_.online ())
{
// ensure PTT isn't left set
do_ptt (false);
do_post_ptt (false);
}
do_stop ();
do_post_stop ();
m_->state_.online (false);