aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-28 14:13:21 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-28 14:13:21 +0200
commit99f5eaa095f8aea4027cae611f6681a2d517337e (patch)
tree4e687937055f49e33c75b6c9072856849ecd516b /lib
parent4373c3f6e07f03ebf2b49686a439e523cf74749c (diff)
downloadwallet-core-99f5eaa095f8aea4027cae611f6681a2d517337e.tar.xz
fix #4692
Diffstat (limited to 'lib')
-rw-r--r--lib/wallet/wallet.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/wallet/wallet.ts b/lib/wallet/wallet.ts
index ffd57e201..a778a60a0 100644
--- a/lib/wallet/wallet.ts
+++ b/lib/wallet/wallet.ts
@@ -632,6 +632,8 @@ export class Wallet {
return Query(this.db).put("history", depleted).finish();
})
.catch((e) => {
+ // Don't show progress while we're sleeping
+ this.stopOperation(opId);
// random, exponential backoff truncated at 3 minutes
let nextDelay = Math.min(2 * retryDelayMs + retryDelayMs * Math.random(), 3000 * 60);
console.warn(`Failed to deplete reserve, trying again in ${retryDelayMs} ms`);