|
@@ -449,6 +449,12 @@ public class SynchronizeFolderOperation extends SyncOperation {
|
|
if (syncInBackgroundWorker) {
|
|
if (syncInBackgroundWorker) {
|
|
try {
|
|
try {
|
|
for (OCFile file: mFilesForDirectDownload) {
|
|
for (OCFile file: mFilesForDirectDownload) {
|
|
|
|
+ synchronized (mCancellationRequested) {
|
|
|
|
+ if (mCancellationRequested.get()) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if (file == null) {
|
|
if (file == null) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|