Browse Source

only error on fatal close node failures. fixes #1

v4
Mathias Buus 8 years ago
parent
commit
8c096a9ffc
  1. 1
      query-stream.js

1
query-stream.js

@ -73,7 +73,6 @@ QueryStream.prototype._finalize = function () {
if (this._finalized) return
this._finalized = true
this._dht.inflightQueries--
if (!this.responses && !this.destroyed) this.destroy(new Error('No nodes responded'))
if (!this.commits && this._committing && !this.destroyed) this.destroy(new Error('No close nodes responded'))
this.push(null)
}

Loading…
Cancel
Save