Fixed msg decoding issue and cleaning up in long messages queue

This commit is contained in:
2015-06-03 16:52:15 +02:00
parent f157672c49
commit db766927f3
2 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -180,7 +180,9 @@ function decodeMsg(buffer, encoding, offset) {
encoding = 'ASCII';
}
return defs.encodings[encoding].decode(buffer.slice(offset, buffer.length));
log.debug('larvitsmpp: lib/utils.js: decodeMsg() - Decoding msg. Encoding: "' + encoding + '" offset: "' + offset + '" buffer: "' + buffer.toString('hex') + '"');
return defs.encodings[encoding].decode(buffer.slice(offset));
}
function encodeMsg(str) {