adaptive fps moved to pipeline creation.

This commit is contained in:
Miroslav Šedivý 2023-01-29 17:40:07 +01:00
parent c45a315d9b
commit 4094639ea9
7 changed files with 40 additions and 65 deletions

View file

@ -105,8 +105,7 @@ func (ws *WebSocketHandler) Start() {
for {
channelMessage, ok := <-ws.sessions.GetSessionChannel()
if !ok {
ws.logger.Info().Str("id", channelMessage.Id).Msg("session channel was closed")
// channel closed
ws.logger.Info().Msg("session channel was closed")
return
}
@ -194,11 +193,12 @@ func (ws *WebSocketHandler) Start() {
go func() {
for {
_, ok = <-ws.desktop.GetClipboardUpdatedChannel()
_, ok := <-ws.desktop.GetClipboardUpdatedChannel()
if !ok {
ws.logger.Info()).Msg("Clipboard update channel closed")
ws.logger.Info().Msg("clipboard update channel closed")
return
}
session, ok := ws.sessions.GetHost()
if !ok {
return