From: Damyan Ivanov Date: Sun, 24 Nov 2019 20:46:09 +0000 (+0200) Subject: whitespace X-Git-Tag: v0.11.0~33 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=e696073cb2d9c59df1cda08f9e3f1de7ad1e3ba3;p=mobile-ledger.git whitespace --- diff --git a/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java b/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java index f4c7ce1f..7a2b9731 100644 --- a/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/async/SendTransactionTask.java @@ -76,7 +76,8 @@ public class SendTransactionTask extends AsyncTask= 2) - throw new IOException(String.format("aborting after %d tries", tried)); - sleep(100); + tried++; + if (tried >= 2) + throw new IOException(String.format("aborting after %d tries", tried)); + sleep(100); } } }