summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-10-09 19:03:41 +0000
committerMarc Laukien <marc@zeroc.com>2003-10-09 19:03:41 +0000
commita771e0d874afb1672110f66864ec64ef1ba69fa5 (patch)
treee16ff207cb6cd8844f3aaecbe5ebf862e14fad5a /java/src
parentfixed connection establishment deadlock (diff)
downloadice-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.java6
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;
}