Repository: incubator-guacamole-server
Updated Branches:
  refs/heads/master 16a8b9b94 -> a46ce4cc3


GUACAMOLE-115: Explicitly signal disconnect at end of connection.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/1817ef4c
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/1817ef4c
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/1817ef4c

Branch: refs/heads/master
Commit: 1817ef4ce061ad5e117945ea8dedca882c66cbec
Parents: 16a8b9b
Author: Michael Jumper <[email protected]>
Authored: Mon Nov 7 10:29:00 2016 -0800
Committer: Michael Jumper <[email protected]>
Committed: Mon Nov 7 10:29:00 2016 -0800

----------------------------------------------------------------------
 src/guacd/user.c | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/1817ef4c/src/guacd/user.c
----------------------------------------------------------------------
diff --git a/src/guacd/user.c b/src/guacd/user.c
index ad09224..0a37147 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;
 

Reply via email to