diff options
author | Marc Laukien <marc@zeroc.com> | 2003-10-09 19:03:41 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-10-09 19:03:41 +0000 |
commit | a771e0d874afb1672110f66864ec64ef1ba69fa5 (patch) | |
tree | e16ff207cb6cd8844f3aaecbe5ebf862e14fad5a /java/src | |
parent | fixed connection establishment deadlock (diff) | |
download | ice-a771e0d874afb1672110f66864ec64ef1ba69fa5.tar.bz2 ice-a771e0d874afb1672110f66864ec64ef1ba69fa5.tar.xz ice-a771e0d874afb1672110f66864ec64ef1ba69fa5.zip |
fixed connection establishment deadlock
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/IceInternal/Connection.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/IceInternal/Connection.java b/java/src/IceInternal/Connection.java index b74e0c3d379..6a11df5e324 100644 --- a/java/src/IceInternal/Connection.java +++ b/java/src/IceInternal/Connection.java @@ -241,6 +241,12 @@ public final class Connection extends EventHandler // volatile. Synchronization is not possible here anyway, // because this function must not block. // + + // + // If _transceiver is null, then _dispatchCount must also be 0; + // + assert(!(_transceiver == null && _dispatchCount != 0)); + return _transceiver == null; } |