summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-02-11 00:10:48 (EST)
committerCaspar De Groot2011-02-11 00:10:48 (EST)
commitba252bafc791573516143cfebfcff06a3e829df6 (patch)
tree3dbeffcab9f708e61e716e061175445905009847
parentf04543b79cf96d4a9de9454ce7ae83e653406a9f (diff)
downloadcdo-ba252bafc791573516143cfebfcff06a3e829df6.zip
cdo-ba252bafc791573516143cfebfcff06a3e829df6.tar.gz
cdo-ba252bafc791573516143cfebfcff06a3e829df6.tar.bz2
[Bug 335830] RecoveringCDOSession attempts recovery regardless of exception type
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335830
-rw-r--r--plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/RecoveringCDOSessionImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/RecoveringCDOSessionImpl.java b/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/RecoveringCDOSessionImpl.java
index bd51110..b0a7e53 100644
--- a/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/RecoveringCDOSessionImpl.java
+++ b/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/RecoveringCDOSessionImpl.java
@@ -11,6 +11,7 @@
package org.eclipse.emf.cdo.internal.net4j;
import org.eclipse.emf.cdo.common.branch.CDOBranchPoint;
+import org.eclipse.emf.cdo.common.util.TransportException;
import org.eclipse.emf.cdo.net4j.CDOSessionRecoveryEvent;
import org.eclipse.emf.cdo.session.CDOSession;
import org.eclipse.emf.cdo.session.CDOSessionEvent;
@@ -250,7 +251,10 @@ public abstract class RecoveringCDOSessionImpl extends CDONet4jSessionImpl
{
public void handleException(CDOSession session, int attempt, Exception exception) throws Exception
{
- recover();
+ if (exception instanceof TransportException)
+ {
+ recover();
+ }
}
}