Send reauth multiple times, maybe this helps avoiding occasional audio/serial stream timeouts

This commit is contained in:
Nonoo 2020-11-04 10:31:58 +01:00
parent d0b0374590
commit bc2abb4716

View file

@ -298,6 +298,12 @@ func (s *controlStream) loop() {
if err := s.sendPktAuth(0x05); err != nil {
reportError(err)
}
if err := s.sendPktAuth(0x05); err != nil {
reportError(err)
}
if err := s.sendPktAuth(0x05); err != nil {
reportError(err)
}
case <-s.reauthTimeoutTimer.C:
log.Error("auth timeout, audio/serial stream may stop")
case <-s.deinitNeededChan: