mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Added disconnect function to tunnel, added automatic disconnect on error receipt in client.
This commit is contained in:
@@ -218,6 +218,7 @@ function GuacamoleClient(display, tunnel) {
|
||||
|
||||
"error": function(parameters) {
|
||||
if (errorHandler) errorHandler(tunnel.unescapeGuacamoleString(parameters[0]));
|
||||
disconnect();
|
||||
},
|
||||
|
||||
"name": function(parameters) {
|
||||
@@ -337,6 +338,7 @@ function GuacamoleClient(display, tunnel) {
|
||||
|
||||
setState(STATE_DISCONNECTING);
|
||||
tunnel.sendMessage("disconnect;");
|
||||
tunnel.disconnect();
|
||||
setState(STATE_DISCONNECTED);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user