diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index 29dc5f23f..f13e69fe5 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -1106,15 +1106,18 @@ qint64 PropagateRootDirectory::committedDiskSpace() const bool PropagateRootDirectory::scheduleSelfOrChild() { - if (_state == Finished) + if (_state == Finished) { return false; + } - if (PropagateDirectory::scheduleSelfOrChild()) + if (PropagateDirectory::scheduleSelfOrChild()) { return true; + } // Important: Finish _subJobs before scheduling any deletes. - if (_subJobs._state != Finished) + if (_subJobs._state != Finished) { return false; + } return _dirDeletionJobs.scheduleSelfOrChild(); }