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

This commit is contained in:
Michael Jumper 2016-11-07 10:29:00 -08:00
parent 16a8b9b94b
commit 1817ef4ce0

View File

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