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 {
|
if text != current {
|
||||||
session, ok := ws.sessions.GetHost()
|
session, ok := ws.sessions.GetHost()
|
||||||
if ok {
|
if ok {
|
||||||
session.Send(message.Clipboard{
|
if err := session.Send(message.Clipboard{
|
||||||
Event: event.CONTROL_CLIPBOARD,
|
Event: event.CONTROL_CLIPBOARD,
|
||||||
Text: text,
|
Text: text,
|
||||||
})
|
}); err != nil {
|
||||||
|
ws.logger.Warn().Err(err).Msg("could not sync clipboard")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
current = text
|
current = text
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user