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