mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-25 06:57:01 +02:00
adaptive fps moved to pipeline creation.
This commit is contained in:
parent
c45a315d9b
commit
4094639ea9
7 changed files with 40 additions and 65 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue