fix clipboard bug.

This commit is contained in:
Miroslav Šedivý 2020-11-16 21:57:35 +01:00
parent 0dab2a99d3
commit e8f9e2e4e4

View File

@ -88,7 +88,7 @@ func (ws *WebSocketManagerCtx) Start() {
return return
default: default:
session := ws.sessions.GetHost() session := ws.sessions.GetHost()
if session != nil { if session == nil {
break break
} }
@ -97,7 +97,6 @@ func (ws *WebSocketManagerCtx) Start() {
break break
} }
// TODO: Refactor
if err := session.Send(message.Clipboard{ if err := session.Send(message.Clipboard{
Event: event.CONTROL_CLIPBOARD, Event: event.CONTROL_CLIPBOARD,
Text: text, Text: text,