mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
removed adaptive framerate tag and react to closed channels
This commit is contained in:
committed by
Miroslav Šedivý
parent
ee13e40d4c
commit
c45a315d9b
@ -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).
|
||||
|
Reference in New Issue
Block a user