summaryrefslogtreecommitdiffstats
path: root/logic/net/CacheDownload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/net/CacheDownload.cpp')
-rw-r--r--logic/net/CacheDownload.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/logic/net/CacheDownload.cpp b/logic/net/CacheDownload.cpp
index d79feb14..1ac55180 100644
--- a/logic/net/CacheDownload.cpp
+++ b/logic/net/CacheDownload.cpp
@@ -182,8 +182,11 @@ void CacheDownload::downloadReadyRead()
{
qCritical() << "Failed writing into " + m_target_path;
m_status = Job_Failed;
- m_reply->abort();
+ m_output_file->cancelWriting();
+ m_output_file.reset();
emit failed(m_index_within_job);
+ wroteAnyData = false;
+ return;
}
wroteAnyData = true;
}