mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
log clipboard sync error.
This commit is contained in:
parent
541ca80878
commit
1ce6dad973
@ -96,10 +96,12 @@ func (ws *WebSocketHandler) Start() {
|
||||
if text != current {
|
||||
session, ok := ws.sessions.GetHost()
|
||||
if ok {
|
||||
session.Send(message.Clipboard{
|
||||
if err := session.Send(message.Clipboard{
|
||||
Event: event.CONTROL_CLIPBOARD,
|
||||
Text: text,
|
||||
})
|
||||
}); err != nil {
|
||||
ws.logger.Warn().Err(err).Msg("could not sync clipboard")
|
||||
}
|
||||
}
|
||||
current = text
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user