mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix(propagation): ensure we delete pending folders before terminating
we might forget to run the pending folder deletions when terminating synchronization ensure we check if any of them are to be done Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
3f57fa1b4f
commit
6f97ee8da6
@ -1611,6 +1611,11 @@ void PropagateRootDirectory::slotSubJobsFinished(SyncFileItem::Status status)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_dirDeletionJobs._jobsToDo.empty()) {
|
||||
_dirDeletionJobs.scheduleSelfOrChild();
|
||||
return;
|
||||
}
|
||||
|
||||
if (status != SyncFileItem::Success
|
||||
&& status != SyncFileItem::Restoration
|
||||
&& status != SyncFileItem::BlacklistedError
|
||||
|
||||
Loading…
Reference in New Issue
Block a user