Commit 371743e5 authored by martin hou's avatar martin hou

fix: 仅在完成后继续发起新的接收处理

parent 28c636a7
......@@ -440,16 +440,17 @@ function Jensen(log, conn) {
{
// console.log('trace', device);
device.transferIn(2, RECV_BUFF_SIZE).then((r) => {
Logger.save?.('jensen', 'tryReceive', r?.data);
// Logger.save?.('jensen', 'tryReceive', r?.data);
// console.log(pid + '-Receive', new Date().toLocaleString(), r?.data);
receive(r);
tryReceive();
}).catch((e) => {
// console.log('tryReceive error', e)
// if (!channelHealthy) self.onerror?.(e);
Logger.error('jensen', 'receive', String(e));
tryReceive();
});
}
tryReceive();
};
const read_int = function (a, b, c, d) {
......
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