mirror of https://github.com/jetkvm/kvm.git
fix: handle error in key release process and log warnings
This commit is contained in:
parent
2eae80ef1d
commit
4ad13a5798
|
@ -226,7 +226,10 @@ func (u *UsbGadget) performAutoRelease(key byte) {
|
|||
return
|
||||
}
|
||||
|
||||
u.keypressReport(key, false)
|
||||
_, err := u.keypressReport(key, false)
|
||||
if err != nil {
|
||||
u.log.Warn().Uint8("key", key).Msg("failed to release key")
|
||||
}
|
||||
}
|
||||
|
||||
func (u *UsbGadget) listenKeyboardEvents() {
|
||||
|
|
Loading…
Reference in New Issue