Closes subscriptions regardless with they are active or not.
This commit is contained in:
@@ -131,10 +131,8 @@ abstract class NostrDataSource(val debugName: String) {
|
|||||||
|
|
||||||
open fun stop() {
|
open fun stop() {
|
||||||
subscriptions.values.forEach { channel ->
|
subscriptions.values.forEach { channel ->
|
||||||
if (channel.typedFilters != null) {// if it is active, close
|
Client.close(channel.id)
|
||||||
Client.close(channel.id)
|
channel.typedFilters = null
|
||||||
channel.typedFilters = null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user