summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-04-05 18:35:52 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-04-07 11:37:13 +0000
commit4a6cb89f2944b5d8ee3e50fd3a2085eba9189680 (patch)
treeda1b70fa4168fd1f58c285d0eb6c2ab2affae601 /src
parent872bff5b24ded4a5dfecad96df907f32830a980a (diff)
Fix reusing FTP connection after abort
The QNetworkAccessCache was keeping the connection alive and it was trying to reuse it for subsequent calls to download files from the same server. After closing the connection, it is not usable anymore and a new one should be created. Task-number: QTBUG-40368 Change-Id: I1a0d08956a94eb36f39d14112cdcab6c1e2add82 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/network/access/qnetworkaccessftpbackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/access/qnetworkaccessftpbackend.cpp b/src/network/access/qnetworkaccessftpbackend.cpp
index d242bdba82..6d1ee645fe 100644
--- a/src/network/access/qnetworkaccessftpbackend.cpp
+++ b/src/network/access/qnetworkaccessftpbackend.cpp
@@ -114,7 +114,7 @@ QNetworkAccessFtpBackend::~QNetworkAccessFtpBackend()
//if backend destroyed while in use, then abort (this is the code path from QNetworkReply::abort)
if (ftp && state != Disconnecting)
ftp->abort();
- disconnectFromFtp();
+ disconnectFromFtp(RemoveCachedConnection);
}
void QNetworkAccessFtpBackend::open()