Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-02-23 04:30:53 +0000
committerslewis2009-02-23 04:30:53 +0000
commite884bb5772f93c299a93b6e1c6c996fd7cce7c70 (patch)
tree7ea18d614b21e91ce7b6cda8335139df99d46bcf /providers
parent1e242318f6a9132c83bbae3ae07f182b236f5433 (diff)
downloadorg.eclipse.ecf-e884bb5772f93c299a93b6e1c6c996fd7cce7c70.tar.gz
org.eclipse.ecf-e884bb5772f93c299a93b6e1c6c996fd7cce7c70.tar.xz
org.eclipse.ecf-e884bb5772f93c299a93b6e1c6c996fd7cce7c70.zip
Applied patch from https://bugs.eclipse.org/bugs/show_bug.cgi?id=263613#c42
Diffstat (limited to 'providers')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java
index 01f33de63..0e7b34d98 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient/src/org/eclipse/ecf/provider/filetransfer/httpclient/HttpClientRetrieveFileTransfer.java
@@ -843,18 +843,19 @@ public class HttpClientRetrieveFileTransfer extends AbstractRetrieveFileTransfer
// connect socket, certificate validation, send request, authenticate,
int ticks = 1;
monitor.beginTask(getRemoteFileURL().toString() + " Connecting", ticks);
- Exception ex = null;
try {
if (monitor.isCanceled())
throw newUserCancelledException();
responseCode = httpClient.executeMethod(getHostConfiguration(), getMethod);
Trace.trace(Activator.PLUGIN_ID, "retrieve resp=" + responseCode); //$NON-NLS-1$
} catch (final Exception e) {
- ex = e;
+ if (!isDone()) {
+ setDoneException(e);
+ }
} finally {
monitor.done();
}
- return getFinalStatus(ex);
+ return getFinalStatus(exception);
}

Back to the top