From 1817ef4ce061ad5e117945ea8dedca882c66cbec Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 7 Nov 2016 10:29:00 -0800 Subject: [PATCH] GUACAMOLE-115: Explicitly signal disconnect at end of connection. --- src/guacd/user.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/guacd/user.c b/src/guacd/user.c index ad092246..0a371477 100644 --- a/src/guacd/user.c +++ b/src/guacd/user.c @@ -102,6 +102,10 @@ int guacd_user_start(guac_parser* parser, guac_user* user) { /* Wait for I/O threads */ pthread_join(input_thread, NULL); + /* Explicitly signal disconnect */ + guac_protocol_send_disconnect(user->socket); + guac_socket_flush(user->socket); + /* Done */ return 0;