check eose too

This commit is contained in:
greenart7c3
2024-07-19 11:14:31 -03:00
parent 19c9bfa819
commit cbd8acbd01

View File

@@ -169,7 +169,7 @@ object Client : RelayPool.Listener {
relay: Relay,
subscriptionId: String?,
) {
if (type == Relay.StateType.DISCONNECT) {
if (type == Relay.StateType.DISCONNECT || type == Relay.StateType.EOSE) {
latch.countDown()
Log.d("sendAndWaitForResponse", "onRelayStateChange Disconnected from relay ${relay.url} count: ${latch.count}")
}