mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-19 11:43:31 +00: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) {
|
if (type == Relay.StateType.DISCONNECT || type == Relay.StateType.EOSE) {
|
||||||
latch.countDown()
|
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}")
|
Log.d("sendAndWaitForResponse", "onRelayStateChange ${type.name} from relay ${relay.url} count: ${latch.count}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user