From a3303bc70b4bcea32adb7f331d8b35b90a6d8f01 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 14 Sep 2023 11:58:00 +0200 Subject: [PATCH] once we call done on a sync file item, return is needed will avoid calling done method multiple times on a signle file item causing a crash via ENFORCE function Signed-off-by: Matthieu Gallien --- src/libsync/propagatedownload.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsync/propagatedownload.cpp b/src/libsync/propagatedownload.cpp index 08ab484891501..8b78b2ab9acb8 100644 --- a/src/libsync/propagatedownload.cpp +++ b/src/libsync/propagatedownload.cpp @@ -1226,6 +1226,7 @@ void PropagateDownloadFile::downloadFinished() QString error; if (!propagator()->createConflict(_item, _associatedComposite, &error)) { done(SyncFileItem::SoftError, error, ErrorCategory::GenericError); + return; } else { previousFileExists = false; }