mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
only check connection if the request was not successful
This commit is contained in:
@@ -169,13 +169,13 @@ object BunkerRequestUtils {
|
||||
success = NostrSigner.instance.client.sendAndWaitForResponse(it, relayList = relays)
|
||||
if (!success) {
|
||||
errorCount++
|
||||
}
|
||||
relays.forEach {
|
||||
if (NostrSigner.instance.client.getRelay(it.url)?.isConnected() == false) {
|
||||
NostrSigner.instance.client.getRelay(it.url)?.connect()
|
||||
relays.forEach {
|
||||
if (NostrSigner.instance.client.getRelay(it.url)?.isConnected() == false) {
|
||||
NostrSigner.instance.client.getRelay(it.url)?.connect()
|
||||
}
|
||||
}
|
||||
delay(1000)
|
||||
}
|
||||
delay(1000)
|
||||
}
|
||||
if (success) {
|
||||
Log.d("IntentUtils", "Success response to relays ${relays.map { it.url }} type ${bunkerRequest?.method}")
|
||||
|
||||
Reference in New Issue
Block a user