From 79e63f0d28123bb3b7e18af1fa1c570bc3dc10ed Mon Sep 17 00:00:00 2001 From: Eugene Tarassov Date: Tue, 26 Nov 2013 12:22:00 -0800 Subject: TCF Core: fixed: when a channel is terminated, pending command should be aborted in same order as they were sent --- .../org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java index 33a930fc9..19d10c8c3 100644 --- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java +++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java @@ -14,6 +14,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.Map; @@ -125,7 +126,7 @@ public abstract class AbstractChannel implements IChannel { private final Collection channel_listeners = new ArrayList(); private final Map event_listeners = new HashMap(); private final Map command_servers = new HashMap(); - private final Map out_tokens = new HashMap(); + private final Map out_tokens = new LinkedHashMap(); private final Thread inp_thread; private final Thread out_thread; private boolean notifying_channel_opened; -- cgit v1.2.3