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 076ba5e65..8dcba34a2 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/service/NostrDataSource.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/service/NostrDataSource.kt @@ -125,8 +125,10 @@ abstract class NostrDataSource(val debugName: String) { open fun stop() { subscriptions.values.forEach { channel -> - if (channel.typedFilters != null) // if it is active, close + if (channel.typedFilters != null) {// if it is active, close Client.close(channel.id) + channel.typedFilters = null + } } }