From d2c39b022b6b7b4911b1438ebcf92ec727569f62 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sat, 18 Feb 2023 19:06:39 -0500 Subject: [PATCH] Closes subscriptions regardless with they are active or not. --- .../com/vitorpamplona/amethyst/service/NostrDataSource.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrDataSource.kt b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrDataSource.kt index ca61a47eb..044c36940 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrDataSource.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrDataSource.kt @@ -131,10 +131,8 @@ abstract class NostrDataSource(val debugName: String) { open fun stop() { subscriptions.values.forEach { channel -> - if (channel.typedFilters != null) {// if it is active, close - Client.close(channel.id) - channel.typedFilters = null - } + Client.close(channel.id) + channel.typedFilters = null } }