This commit is contained in:
greenart7c3
2024-07-19 08:05:04 -03:00
parent ac58f99560
commit 04bf9c07ac

View File

@@ -162,7 +162,11 @@ object Client : RelayPool.Listener {
}
}
override fun onError(error: Error, subscriptionId: String, relay: Relay) {
override fun onError(
error: Error,
subscriptionId: String,
relay: Relay,
) {
unsubscribe(this)
latch.countDown()
Log.d("Relay", "Error from relay ${relay.url} count: ${latch.count} error: $error")
@@ -180,7 +184,12 @@ object Client : RelayPool.Listener {
}
}
override fun onSendResponse(eventId: String, success: Boolean, message: String, relay: Relay) {
override fun onSendResponse(
eventId: String,
success: Boolean,
message: String,
relay: Relay,
) {
if (eventId == signedEvent.id()) {
unsubscribe(this)
latch.countDown()