GUACAMOLE-221: Add socket keepalive when sending required fields.

This commit is contained in:
Nick Couchman 2020-04-14 19:02:38 -04:00
parent 51b9c9c103
commit 7759f9b1c0

View File

@ -994,6 +994,9 @@ int guac_protocol_send_rect(guac_socket* socket,
static int __guac_protocol_send_required(guac_socket* socket,
const char** required) {
// The socket should be kept alive while waiting for user response.
guac_socket_require_keep_alive(socket);
if (guac_socket_write_string(socket, "8.required"))
return -1;