Merge pull request #584 from luddd3/next

refactor: resultError always emitted on errors
This commit is contained in:
James Sumners 2019-12-07 10:42:20 -05:00 committed by GitHub
commit f4b14ec305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,7 @@ Client.prototype._sendSocket = function _sendSocket (message,
var sentEmitter = false
function sendResult (event, obj) {
if (event === 'error' && self.listeners('resultError')) {
if (event === 'error') {
self.emit('resultError', obj)
}
if (emitter) {