diff options
author | Matthew Newhook <matthew@zeroc.com> | 2008-02-14 16:22:39 +0800 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2008-02-14 16:22:39 +0800 |
commit | 294ec25fda6e3785c54970d274b860b1ca837955 (patch) | |
tree | 26e5d1987ffdfde7bbacb87fdfb7b96bbef998e9 /java/src/IceInternal/ConnectRequestHandler.java | |
parent | Merge branch 'bug2435' (diff) | |
download | ice-294ec25fda6e3785c54970d274b860b1ca837955.tar.bz2 ice-294ec25fda6e3785c54970d274b860b1ca837955.tar.xz ice-294ec25fda6e3785c54970d274b860b1ca837955.zip |
merged bug2615
Diffstat (limited to 'java/src/IceInternal/ConnectRequestHandler.java')
-rw-r--r-- | java/src/IceInternal/ConnectRequestHandler.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/src/IceInternal/ConnectRequestHandler.java b/java/src/IceInternal/ConnectRequestHandler.java index ab38043e5a0..8144356b60a 100644 --- a/java/src/IceInternal/ConnectRequestHandler.java +++ b/java/src/IceInternal/ConnectRequestHandler.java @@ -42,12 +42,9 @@ public class ConnectRequestHandler synchronized(this) { - if(_exception != null) - { - throw _exception; - } - else if(_connection != null) + if(initialized()) { + assert(_connection != null); return new ConnectionRequestHandler(_reference, _connection, _compress); } else @@ -474,6 +471,8 @@ public class ConnectRequestHandler // handler which does not have any synchronization. This also breaks the cyclic // reference count with the proxy. // + // NOTE: _updateRequestHandler is immutable once _flushing = true + // if(_updateRequestHandler && _exception == null) { _proxy.__setRequestHandler(_delegate, new ConnectionRequestHandler(_reference, _connection, _compress)); |