Error handling, added data submission for connect.
This commit is contained in:
1 parent
92d68a3987
commit
0eb351e467
2 files changed
+23
-5
No files matched your search
@@ -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