Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
don't let slow network connectivity result in an error
Browse files Browse the repository at this point in the history
  • Loading branch information
mrose17 authored and diracdeltas committed Aug 24, 2016
1 parent 55f2288 commit 91cd639
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,11 @@ var run = (delayTime) => {
}

if (delayTime === 0) {
delayTime = client.timeUntilReconcile()
try {
delayTime = client.timeUntilReconcile()
} catch (ex) {
delayTime = random.randomInt({ min: 1, max: 10 * msecs.minute })
}
if (delayTime === false) delayTime = 0
}
if (delayTime > 0) {
Expand Down

0 comments on commit 91cd639

Please sign in to comment.