mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-06 11:39:49 +00:00
Revert "Check if folder is open on operations"
This reverts commit f2cf1673d1
.
This commit is contained in:
parent
13fdc93ff0
commit
76ab1e3af9
1 changed files with 0 additions and 17 deletions
|
@ -1209,23 +1209,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
Log.i(folder.name + " queuing operations=" + added.size() +
|
Log.i(folder.name + " queuing operations=" + added.size() +
|
||||||
" init=" + folder.initialize + " poll=" + folder.poll);
|
" init=" + folder.initialize + " poll=" + folder.poll);
|
||||||
|
|
||||||
executor.submit(new Helper.PriorityRunnable(-1000, 0) {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
try {
|
|
||||||
Folder ifolder = mapFolders.get(folder);
|
|
||||||
if (ifolder != null) {
|
|
||||||
boolean isOpen = ifolder.isOpen();
|
|
||||||
Log.i(folder.name + " open=" + isOpen);
|
|
||||||
if (!isOpen)
|
|
||||||
state.error(new FolderClosedException(ifolder));
|
|
||||||
}
|
|
||||||
} catch (Throwable ex) {
|
|
||||||
Log.w(ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
// Partition operations by priority
|
// Partition operations by priority
|
||||||
boolean offline = (mapFolders.get(folder) == null);
|
boolean offline = (mapFolders.get(folder) == null);
|
||||||
List<TupleOperationEx.PartitionKey> keys = new ArrayList<>();
|
List<TupleOperationEx.PartitionKey> keys = new ArrayList<>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue