Move getSwarm into try catch (#1021)

pull/1712/head
SessionHero01 2 months ago committed by GitHub
parent 36590bea81
commit 82c29e9f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -107,7 +107,8 @@ class Poller(
Log.d(TAG, "Polling...") Log.d(TAG, "Polling...")
isPolling = true isPolling = true
var pollDelay = RETRY_INTERVAL_MS
try {
// check if the polling pool is empty // check if the polling pool is empty
if (pollPool.isEmpty()){ if (pollPool.isEmpty()){
// if it is empty, fill it with the snodes from our swarm // if it is empty, fill it with the snodes from our swarm
@ -120,8 +121,6 @@ class Poller(
// remove that snode from the pool // remove that snode from the pool
pollPool.remove(currentNode) pollPool.remove(currentNode)
var pollDelay = RETRY_INTERVAL_MS
try {
poll(currentNode) poll(currentNode)
retryScalingFactor = 1f retryScalingFactor = 1f
} catch (e: Exception){ } catch (e: Exception){

Loading…
Cancel
Save