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)); JSONObject jconfirm = new JSONObject(queue.remove(0));
Log.i("Send confirm=" + jconfirm); Log.i("Send confirm=" + jconfirm);
if (!jconfirm.getBoolean("ok")) if (!jconfirm.optBoolean("ok"))
throw new FileNotFoundException(); throw new FileNotFoundException(jconfirm.toString());
} finally { } finally {
ws.disconnect(); ws.disconnect();
} }

Loading…
Cancel
Save