propagateuploadv1: don't finalize after a done()

Should fix an assert when "Server does not support X-OC-MTime"
(Which only happens with owncloud 5)

Issue #6403
This commit is contained in:
Olivier Goffart 2018-03-27 10:48:51 +02:00 committed by Camila San
parent 5e2270bd57
commit 3506c52be9
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -323,6 +323,7 @@ void PropagateUploadFileV1::slotPutFinished()
qCWarning(lcPropagateUpload) << "Server does not support X-OC-MTime" << job->reply()->rawHeader("X-OC-MTime"); qCWarning(lcPropagateUpload) << "Server does not support X-OC-MTime" << job->reply()->rawHeader("X-OC-MTime");
// Well, the mtime was not set // Well, the mtime was not set
done(SyncFileItem::SoftError, "Server does not support X-OC-MTime"); done(SyncFileItem::SoftError, "Server does not support X-OC-MTime");
return;
} }
finalize(); finalize();