mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 09:47:13 +00:00
Send: improved check confirm
This commit is contained in:
parent
6c496c20cb
commit
8a58f7730c
1 changed files with 2 additions and 2 deletions
|
@ -222,8 +222,8 @@ public class Send {
|
|||
|
||||
JSONObject jconfirm = new JSONObject(queue.remove(0));
|
||||
Log.i("Send confirm=" + jconfirm);
|
||||
if (!jconfirm.getBoolean("ok"))
|
||||
throw new FileNotFoundException();
|
||||
if (!jconfirm.optBoolean("ok"))
|
||||
throw new FileNotFoundException(jconfirm.toString());
|
||||
} finally {
|
||||
ws.disconnect();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue