Skip to content

Commit

Permalink
once we call done on a sync file item, return is needed
Browse files Browse the repository at this point in the history
will avoid calling done method multiple times on a signle file item
causing a crash via ENFORCE function

Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien authored and backportbot-nextcloud[bot] committed Sep 14, 2023
1 parent ef55b28 commit 8d68218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsync/propagatedownload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d68218

Please sign in to comment.