Added disconnect function to tunnel, added automatic disconnect on error receipt in client.
This commit is contained in:
1 parent
4f656c2e94
commit
cfebdb2cf3
2 files changed
+26
-7
No files matched your search
@@ -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