Merge pull request #584 from luddd3/next
refactor: resultError always emitted on errors
This commit is contained in:
commit
f4b14ec305
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue