[client] added send keyboard event result checking

This commit is contained in:
Geoffrey McRae 2017-10-31 19:11:51 +11:00
parent 2315d496b1
commit ea41a0e3bc

View file

@ -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;
}