diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-09-08 14:43:04 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-09-08 14:43:04 +0200 |
commit | a13ed5c595fd7492a4ecb2c0712efff4f2af807c (patch) | |
tree | 021afa5085f74a58d461ccae6471a38dd13a7170 /js/src | |
parent | Fixed ICE-6777 - Increased IceGrid session timeout (diff) | |
download | ice-a13ed5c595fd7492a4ecb2c0712efff4f2af807c.tar.bz2 ice-a13ed5c595fd7492a4ecb2c0712efff4f2af807c.tar.xz ice-a13ed5c595fd7492a4ecb2c0712efff4f2af807c.zip |
Fixed ICE-6778 - background test failure
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/Ice/ConnectRequestHandler.js | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/js/src/Ice/ConnectRequestHandler.js b/js/src/Ice/ConnectRequestHandler.js index 80438239c17..a5f739996ef 100644 --- a/js/src/Ice/ConnectRequestHandler.js +++ b/js/src/Ice/ConnectRequestHandler.js @@ -54,24 +54,9 @@ var ConnectRequestHandler = Ice.Class({ }, connect: function(proxy) { - try - { - if(!this.initialized()) - { - this._proxies.push(proxy); - } - } - catch(ex) + if(!this.initialized()) { - // - // Only throw if the connection didn't get established. If - // it died after being established, we allow the caller to - // retry the connection establishment by not throwing here. - // - if(this._connection === null) - { - throw ex; - } + this._proxies.push(proxy); } return this._requestHandler ? this._requestHandler : this; }, @@ -212,6 +197,16 @@ var ConnectRequestHandler = Ice.Class({ { if(this._exception !== null) { + if(this._connection !== null) + { + // + // Only throw if the connection didn't get established. If + // it died after being established, we allow the caller to + // retry the connection establishment by not throwing here + // (the connection will throw RetryException). + // + return true; + } throw this._exception; } else |