diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-06-12 16:52:36 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-06-12 16:52:36 +0200 |
commit | 31c9bffb12664cefc5020baf02871bf6449e24cd (patch) | |
tree | 12ed880f0cbbe4b4689e6901bcfff84093c5a6f0 /java/src | |
parent | Fix build issue with previous commit (diff) | |
download | ice-31c9bffb12664cefc5020baf02871bf6449e24cd.tar.bz2 ice-31c9bffb12664cefc5020baf02871bf6449e24cd.tar.xz ice-31c9bffb12664cefc5020baf02871bf6449e24cd.zip |
Don't throw RetryException if the failure occurs during connection establishement (ICE-6589)
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/Ice/src/main/java/IceInternal/ConnectRequestHandler.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/java/src/Ice/src/main/java/IceInternal/ConnectRequestHandler.java b/java/src/Ice/src/main/java/IceInternal/ConnectRequestHandler.java index 11628f7fa41..5451c5768a0 100644 --- a/java/src/Ice/src/main/java/IceInternal/ConnectRequestHandler.java +++ b/java/src/Ice/src/main/java/IceInternal/ConnectRequestHandler.java @@ -60,17 +60,10 @@ public class ConnectRequestHandler out.cancelable(this); // This will throw if the request is canceled } - try - { - if(!initialized()) - { - _requests.add(out); - return AsyncStatus.Queued; - } - } - catch(Ice.LocalException ex) + if(!initialized()) { - throw new RetryException(ex); + _requests.add(out); + return AsyncStatus.Queued; } } return out.invokeRemote(_connection, _compress, _response); |