mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Error handling, added data submission for connect.
This commit is contained in:
@@ -429,12 +429,19 @@ function GuacamoleClient(display, tunnel) {
|
||||
}
|
||||
|
||||
this.disconnect = disconnect;
|
||||
this.connect = function() {
|
||||
this.connect = function(data) {
|
||||
|
||||
setState(STATE_CONNECTING);
|
||||
tunnel.connect();
|
||||
setState(STATE_WAITING);
|
||||
|
||||
try {
|
||||
tunnel.connect(data);
|
||||
}
|
||||
catch (e) {
|
||||
setState(STATE_IDLE);
|
||||
throw e;
|
||||
}
|
||||
|
||||
setState(STATE_WAITING);
|
||||
};
|
||||
|
||||
this.escapeGuacamoleString = escapeGuacamoleString;
|
||||
|
Reference in New Issue
Block a user