From 4d48dc384b4ba6c54e89eb856e0029db0f91221a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 14 Apr 2014 12:20:08 -0700 Subject: [PATCH] GUAC-622: Do not log a pointless error every time the client disconnects properly. Just stop the client - we have a function for that now. --- src/libguac/client-handlers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libguac/client-handlers.c b/src/libguac/client-handlers.c index a9e1326b..a92ddf1d 100644 --- a/src/libguac/client-handlers.c +++ b/src/libguac/client-handlers.c @@ -317,7 +317,8 @@ int __guac_handle_end(guac_client* client, guac_instruction* instruction) { } int __guac_handle_disconnect(guac_client* client, guac_instruction* instruction) { - /* Return error code to force disconnect */ - return -1; + guac_client_log_info(client, "Disconnect requested. Stopping client..."); + guac_client_stop(client); + return 0; }