Fix panic on tune end

This commit is contained in:
Nonoo 2020-11-09 09:54:39 +01:00
parent 21eee30078
commit c0e3ea7ae3

View file

@ -513,7 +513,9 @@ func (s *civControlStruct) decodeTransmitStatus(d []byte) bool {
} else {
if s.state.ptt { // PTT released?
s.state.ptt = false
s.state.pttTimeoutTimer.Stop()
if s.state.pttTimeoutTimer != nil {
s.state.pttTimeoutTimer.Stop()
}
_ = s.getVd()
}
}