Fixed msg decoding issue and cleaning up in long messages queue
This commit is contained in:
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user