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 /csharp | |
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 'csharp')
-rw-r--r-- | csharp/src/Ice/ConnectRequestHandler.cs | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/csharp/src/Ice/ConnectRequestHandler.cs b/csharp/src/Ice/ConnectRequestHandler.cs index 67ff6629605..fe93d6e4fb6 100644 --- a/csharp/src/Ice/ConnectRequestHandler.cs +++ b/csharp/src/Ice/ConnectRequestHandler.cs @@ -60,18 +60,11 @@ namespace IceInternal outAsync.cancelable(this); // This will throw if the request is canceled } - try - { - if(!initialized()) - { - _requests.AddLast(outAsync); - sentCallback = null; - return false; - } - } - catch(Ice.LocalException ex) + if(!initialized()) { - throw new RetryException(ex); + _requests.AddLast(outAsync); + sentCallback = null; + return false; } } return outAsync.invokeRemote(_connection, _compress, _response, out sentCallback); |