Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2013-11-28 12:43:39 +0400
committerOlivier Goffart <ogoffart@woboq.com>2013-11-28 13:01:30 +0400
commit30db533cea8c7f36250a4b30d688865b7a1a889d (patch)
treeed619f2ac96ed86f5078ca1395eec268bcc5a788 /src
parent99eeaa0db5bffa3b1f9f3974a55e92bb839ecf61 (diff)
Stop iterating files when aborting.
Diffstat (limited to 'src')
-rw-r--r--src/mirall/owncloudpropagator.cpp2
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 {