summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-30 10:47:14 (EDT)
committerEike Stepper2007-08-30 10:47:14 (EDT)
commit09538b5f6090ca8513e2cb8b8cc1881f6572cfad (patch)
tree8a311478bb7d34ac2a1281887b46da265c648004
parent0c1bf98c2c15a4538d4b4bd636db71008fb5f8dc (diff)
downloadcdo-09538b5f6090ca8513e2cb8b8cc1881f6572cfad.zip
cdo-09538b5f6090ca8513e2cb8b8cc1881f6572cfad.tar.gz
cdo-09538b5f6090ca8513e2cb8b8cc1881f6572cfad.tar.bz2
[201366] Random deadlocks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201366
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Channel.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Channel.java b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Channel.java
index e5b75cf..93262e3 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Channel.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/internal/net4j/Channel.java
@@ -237,7 +237,12 @@ public class Channel extends Lifecycle implements IChannel, IBufferProvider
receiveHandler = null;
connector.removeChannel(this);
- receiveSerializer = null;
+ if (receiveSerializer != null)
+ {
+ receiveSerializer.dispose();
+ receiveSerializer = null;
+ }
+
if (sendQueue != null)
{
sendQueue.clear();