mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 08:56:20 +02:00
Clears filters when DataSource closes
This commit is contained in:
@@ -125,8 +125,10 @@ abstract class NostrDataSource<T>(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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user