removed adaptive framerate tag and react to closed channels

This commit is contained in:
mbattista
2023-01-29 13:28:03 +01:00
committed by Miroslav Šedivý
parent ee13e40d4c
commit c45a315d9b
9 changed files with 202 additions and 177 deletions

View File

@ -50,7 +50,11 @@ func (manager *DesktopManagerCtx) Start() {
go func() {
for {
msg := <-xevent.EventErrorChannel
msg, ok := <-xevent.EventErrorChannel
if !ok {
manager.logger.Info().Msg("Error channel was closed")
return
}
manager.logger.Warn().
Uint8("error_code", msg.Error_code).
Str("message", msg.Message).