From 8c096a9ffcfa0fa4574833f674b13ea8c0054abf Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Sat, 21 Jan 2017 12:51:28 +0100 Subject: [PATCH] only error on fatal close node failures. fixes #1 --- query-stream.js | 1 - 1 file changed, 1 deletion(-) diff --git a/query-stream.js b/query-stream.js index b72093b..029ac71 100644 --- a/query-stream.js +++ b/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) }