|
|
@ -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){
|
|
|
|