Handle targets that have no connections when closing on eose
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "paravel",
|
||||
"version": "0.4.20",
|
||||
"version": "0.4.21",
|
||||
"description": "Yet another toolkit for nostr",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@ export class Subscription extends EventEmitter {
|
||||
|
||||
this.eose.add(url)
|
||||
|
||||
if (closeOnEose && this.eose.size === executor.target.connections.length) {
|
||||
if (closeOnEose && this.eose.size >= executor.target.connections.length) {
|
||||
this.close()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user