mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-01 00:18:30 +02:00
if the relay just connected send the event
This commit is contained in:
parent
68fb34a8ad
commit
e764ebbcb2
@ -173,6 +173,10 @@ object Client : RelayPool.Listener {
|
||||
if (type == Relay.StateType.DISCONNECT || type == Relay.StateType.EOSE) {
|
||||
latch.countDown()
|
||||
}
|
||||
if (type == Relay.StateType.CONNECT) {
|
||||
Log.d("sendAndWaitForResponse", "${type.name} Sending event to relay ${relay.url} count: ${latch.count}")
|
||||
relay.sendOverride(signedEvent)
|
||||
}
|
||||
Log.d("sendAndWaitForResponse", "onRelayStateChange ${type.name} from relay ${relay.url} count: ${latch.count}")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user