mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-03-01 19:03:50 +01:00
Fix panic on tune end
This commit is contained in:
parent
21eee30078
commit
c0e3ea7ae3
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue