Skip to content

Commit

Permalink
Merge 6e36f58 into 2b04748
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Apr 21, 2022
2 parents 2b04748 + 6e36f58 commit 7eef362
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/smpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,25 @@ Session.prototype.send = function(pdu, responseCallback, sendCallback, failureCa
}
if (failureCallback) {
pdu.command_status = defs.errors.ESME_RSUBMITFAIL;
failureCallback(pdu);
failureCallback(pdu, err);
}
<<<<<<< HEAD
return;
}

this.debug("socket.data.out", null, {bytes: buffer.length, error: err});
this.emit('send', pdu);
if (sendCallback) {
sendCallback(pdu);
=======
} else {
this.debug("socket.data.out", null, {bytes: buffer.length});
this.emitMetric("socket.data.out", buffer.length, {bytes: buffer.length});
this.emit('send', pdu);
if (sendCallback) {
sendCallback(pdu);
}
>>>>>>> master
}
}).bind(this));
return true;
Expand Down

0 comments on commit 7eef362

Please sign in to comment.