Fix: Increase reconnection attempts when waking the app.

Based on recent logs, reconnecting seems to be the right thing to do so try it for longer and see if that helps.
This commit is contained in:
Kevin Gorham 2021-06-20 20:48:58 -04:00
parent 81266f01e5
commit d5456f078d
No known key found for this signature in database
GPG Key ID: CCA55602DF49FC38
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ open class CompactBlockDownloader private constructor(val compactBlockStore: Com
try {
result = lightWalletService.getServerInfo()
} catch (e: StatusRuntimeException) {
retryUpTo(2) {
retryUpTo(6) {
twig("WARNING: reconnecting to service in response to failure (retry #${it + 1}): $e")
lightWalletService.reconnect()
result = lightWalletService.getServerInfo()