diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2013-11-28 12:43:39 +0400 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2013-11-28 13:01:30 +0400 |
commit | 30db533cea8c7f36250a4b30d688865b7a1a889d (patch) | |
tree | ed619f2ac96ed86f5078ca1395eec268bcc5a788 /src | |
parent | 99eeaa0db5bffa3b1f9f3974a55e92bb839ecf61 (diff) |
Stop iterating files when aborting.
Diffstat (limited to 'src')
-rw-r--r-- | src/mirall/owncloudpropagator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mirall/owncloudpropagator.cpp b/src/mirall/owncloudpropagator.cpp index bc3c565ec..2fb00d5a5 100644 --- a/src/mirall/owncloudpropagator.cpp +++ b/src/mirall/owncloudpropagator.cpp @@ -1070,7 +1070,7 @@ void PropagateDirectory::proceedNext(SyncFileItem::Status status) } _current ++; - if (_current < _subJobs.size()) { + if (_current < _subJobs.size() && !_propagator->_abortRequested->fetchAndAddRelaxed(0)) { PropagatorJob *next = _subJobs.at(_current); startJob(next); } else { |