Fire the feedback event even if there is no feedback to let the consumer know that operation completed without feedback.
This commit is contained in:
Родитель
5175a34ec4
Коммит
d5e9484a72
|
@ -260,7 +260,7 @@ Feedback.prototype.destroyConnection = function (err) {
|
|||
Feedback.prototype.resetConnection = function () {
|
||||
debug("Resetting connection");
|
||||
|
||||
if (this.options.batchFeedback && this.feedbackData.length > 0) {
|
||||
if (this.options.batchFeedback) {
|
||||
debug("Emitting all feedback tokens");
|
||||
this.emit('feedback', this.feedbackData);
|
||||
this.feedbackData = [];
|
||||
|
|
Загрузка…
Ссылка в новой задаче