refactor: resultError always emitted on error
This commit is contained in:
parent
5354e9cda6
commit
d7d2e99275
|
@ -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