mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 17:36:59 +01:00
check eose too
This commit is contained in:
@@ -169,7 +169,7 @@ object Client : RelayPool.Listener {
|
|||||||
relay: Relay,
|
relay: Relay,
|
||||||
subscriptionId: String?,
|
subscriptionId: String?,
|
||||||
) {
|
) {
|
||||||
if (type == Relay.StateType.DISCONNECT) {
|
if (type == Relay.StateType.DISCONNECT || type == Relay.StateType.EOSE) {
|
||||||
latch.countDown()
|
latch.countDown()
|
||||||
Log.d("sendAndWaitForResponse", "onRelayStateChange Disconnected from relay ${relay.url} count: ${latch.count}")
|
Log.d("sendAndWaitForResponse", "onRelayStateChange Disconnected from relay ${relay.url} count: ${latch.count}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user