From ea41a0e3bc521e714d1e4d6cdb532a5a4d6673ea Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 31 Oct 2017 19:11:51 +1100 Subject: [PATCH] [client] added send keyboard event result checking --- client/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/main.c b/client/main.c index cdce3e33..af9a1386 100644 --- a/client/main.c +++ b/client/main.c @@ -467,7 +467,11 @@ int eventThread(void * arg) if (scancode == 0) break; - spice_key_down(scancode); + if (!spice_key_down(scancode)) + { + DEBUG_ERROR("SDL_KEYDOWN: failed to send message"); + break; + } break; } @@ -482,7 +486,11 @@ int eventThread(void * arg) if (scancode == 0) break; - spice_key_up(scancode); + if (!spice_key_up(scancode)) + { + DEBUG_ERROR("SDL_KEYUP: failed to send message"); + break; + } break; }