Handle targets that have no connections when closing on eose
This commit is contained in:
+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