Send: improved check confirm

pull/216/head
M66B 3 months ago
parent 6c496c20cb
commit 8a58f7730c

@ -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…
Cancel
Save