summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-12 03:26:30 (EDT)
committerEike Stepper2007-09-12 03:26:30 (EDT)
commitac1e98a217f88ae043802d185afbd3b33d9322bb (patch)
tree2d9323a778d37a79aafa7b227a79a7fa1d8fa110
parent00cf95efa77772b44e09cf734e70c2ef24a56867 (diff)
downloadcdo-ac1e98a217f88ae043802d185afbd3b33d9322bb.zip
cdo-ac1e98a217f88ae043802d185afbd3b33d9322bb.tar.gz
cdo-ac1e98a217f88ae043802d185afbd3b33d9322bb.tar.bz2
[201267] Failover strategy for CDO/NET4J
https://bugs.eclipse.org/bugs/show_bug.cgi?id=201267
-rw-r--r--plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java
index 7134ae0..3ba292b 100644
--- a/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java
+++ b/plugins/org.eclipse.net4j/src/org/eclipse/net4j/signal/SignalActor.java
@@ -70,11 +70,11 @@ public abstract class SignalActor<RESULT> extends Signal
throw new IllegalArgumentException("Channel has no protocol"); //$NON-NLS-1$
}
- if (!(receiveHandler instanceof SignalProtocol))
+ if (receiveHandler instanceof SignalProtocol)
{
- throw new IllegalArgumentException("Channel has no signal protocol"); //$NON-NLS-1$
+ return (SignalProtocol)receiveHandler;
}
- return (SignalProtocol)receiveHandler;
+ throw new IllegalArgumentException("Channel has no signal protocol"); //$NON-NLS-1$
}
}