Commit 6b841d87 authored by martin hou's avatar martin hou

Merge branch 'v20250816' into device-mgr

parents 3112dd38 4a9305c3
...@@ -444,8 +444,10 @@ function Jensen(log, conn) { ...@@ -444,8 +444,10 @@ function Jensen(log, conn) {
// console.log(pid + '-Receive', new Date().toLocaleString(), r?.data); // console.log(pid + '-Receive', new Date().toLocaleString(), r?.data);
receive(r); receive(r);
}).catch((e) => { }).catch((e) => {
console.log('tryReceive error', e) // console.log('tryReceive error', e)
// if (!channelHealthy) self.onerror?.(e); // if (!channelHealthy) self.onerror?.(e);
Logger.error('jensen', 'receive', String(e));
tryReceive();
}); });
}; };
...@@ -472,9 +474,7 @@ function Jensen(log, conn) { ...@@ -472,9 +474,7 @@ function Jensen(log, conn) {
tryDecode(); tryDecode();
}, self.timewait); }, self.timewait);
if (self.onreceive) { if (self.onreceive) {
try { try { self.onreceive(totalBytes); } catch (e) {}
self.onreceive(totalBytes);
} catch (e) {}
} }
}; };
......
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