Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-05-08 13:09:17 +0000
committerMichael Valenta2003-05-08 13:09:17 +0000
commitca263ff107d2b9a2c52fc0e24f596596a094aaed (patch)
tree03a7c5a1f0c7b48b99d9f9a7eaa9e2a3baaf3a5d
parent9df33dc3ca8e7b6fc507f4896c9ca6d095e8b8f3 (diff)
downloadeclipse.platform.team-ca263ff107d2b9a2c52fc0e24f596596a094aaed.tar.gz
eclipse.platform.team-ca263ff107d2b9a2c52fc0e24f596596a094aaed.tar.xz
eclipse.platform.team-ca263ff107d2b9a2c52fc0e24f596596a094aaed.zip
37292: [CVS Core] Unable to synchronize - Cannot close connection
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
index e520f4a1a..64eb74702 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/Connection.java
@@ -17,6 +17,7 @@ import java.io.OutputStream;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.internal.ccvs.core.CVSException;
+import org.eclipse.team.internal.ccvs.core.CVSProviderPlugin;
import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation;
import org.eclipse.team.internal.ccvs.core.IServerConnection;
import org.eclipse.team.internal.ccvs.core.Policy;
@@ -71,7 +72,9 @@ public class Connection {
try {
serverConnection.close();
} catch (IOException ex) {
- throw new CVSCommunicationException(Policy.bind("Connection.cannotClose"), ex);//$NON-NLS-1$
+ // It is possible that the stream is being closed because of another exception.
+ // Therefore, the communication exception is logged instead of thrown
+ CVSProviderPlugin.log(new CVSCommunicationException(Policy.bind("Connection.cannotClose"), ex));//$NON-NLS-1$
} finally {
fResponseStream = null;
fIsEstablished = false;

Back to the top