Commit 5133292a authored by martin hou's avatar martin hou

fix: 解码后如果current未清空视为处理失败

parent eaf70b15
......@@ -574,6 +574,13 @@ function Jensen(log, conn) {
}
buffLength = buffLength - startIndex;
}
// 是不是应该将current设置为null来解除当前指令的阻塞?
if (current)
{
Logger.info('jensen', 'decode', `current: ${current}`);
trigger(null, current.replace(/^cmd-(\d+)-(\d+)$/gi, '$1'));
}
// Logger.info('jensen', 'decode', `total decode: ${decodeBytes}`);
// console.error('Decode: ' + (new Date().getTime() - stime.getTime()) + 'ms');
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment