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