From e696073cb2d9c59df1cda08f9e3f1de7ad1e3ba3 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 24 Nov 2019 22:46:09 +0200 Subject: [PATCH] whitespace --- .../async/SendTransactionTask.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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); } } } -- 2.39.5