mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Set send operations executing
This commit is contained in:
@@ -257,6 +257,8 @@ public class ServiceSend extends ServiceBase {
|
||||
" msg=" + op.message +
|
||||
" args=" + op.args);
|
||||
|
||||
db.operation().setOperationState(op.id, "executing");
|
||||
|
||||
Map<String, String> crumb = new HashMap<>();
|
||||
crumb.put("name", op.name);
|
||||
crumb.put("args", op.args);
|
||||
@@ -306,6 +308,7 @@ public class ServiceSend extends ServiceBase {
|
||||
throw ex;
|
||||
} finally {
|
||||
Log.i(outbox.name + " end op=" + op.id + "/" + op.name);
|
||||
db.operation().setOperationState(op.id, null);
|
||||
}
|
||||
|
||||
if (!ConnectionHelper.getNetworkState(this).isSuitable())
|
||||
|
||||
Reference in New Issue
Block a user