Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-08-22 07:06:22 -0400
committerTobias Schwarz2014-08-22 07:06:22 -0400
commit4a87f1ac229927afdcdeb2b58b4062465ff8e4c9 (patch)
treeeee08d9cb769d262361b603a47ceed15a19b8de3
parenta95a234f18cfffd3f4317dddcd1e2ddda1727d48 (diff)
downloadorg.eclipse.tcf-4a87f1ac229927afdcdeb2b58b4062465ff8e4c9.tar.gz
org.eclipse.tcf-4a87f1ac229927afdcdeb2b58b4062465ff8e4c9.tar.xz
org.eclipse.tcf-4a87f1ac229927afdcdeb2b58b4062465ff8e4c9.zip
Target Explorer: repack all errors
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/channelmanager/steps/ChainPeerStep.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/channelmanager/steps/ChainPeerStep.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/channelmanager/steps/ChainPeerStep.java
index 6ec5c5807..f34882be2 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/channelmanager/steps/ChainPeerStep.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/channelmanager/steps/ChainPeerStep.java
@@ -69,11 +69,6 @@ public class ChainPeerStep extends AbstractPeerStep {
public void run() {
IChannel c = channel.get();
- // Flag to remember if openChannel or redirect is triggering
- // the channel listener invocation. Repackage the error if
- // the channel listener is invoked because of calling openChannel.
- final boolean openChannelCalled = c == null;
-
// If the channel is not yet opened, open it now.
// Otherwise redirect the channel to the next peer.
if (c == null) {
@@ -118,8 +113,8 @@ public class ChainPeerStep extends AbstractPeerStep {
public void onChannelClosed(Throwable error) {
// Remove ourself as listener from the channel
channel.get().removeChannelListener(this);
- // If invoked as result to an openChannel call, the error is repackaged
- if (openChannelCalled && error != null) {
+ // The error is repackaged
+ if (error != null) {
error = new OpenChannelException(error);
}
// Invoke the callback

Back to the top