Commit 0d03a67e authored by Skye Yu's avatar Skye Yu

test: continue decode

parent 572abe9a
...@@ -314,17 +314,17 @@ function Jensen(log) { ...@@ -314,17 +314,17 @@ function Jensen(log) {
// 做一个回调,怎么样找到它呢? // 做一个回调,怎么样找到它呢?
blocks.push(result.data); blocks.push(result.data);
tryReceive(); tryReceive();
tryDecode();
if (self.onreceive) { if (self.onreceive) {
tryDecode();
try { try {
self.onreceive(totalBytes); self.onreceive(totalBytes);
} catch (e) { } catch (e) {
} }
} else { } else {
if (self.decodeTimeout) clearTimeout(self.decodeTimeout); // if (self.decodeTimeout) clearTimeout(self.decodeTimeout);
self.decodeTimeout = setTimeout(function () { // self.decodeTimeout = setTimeout(function () {
tryDecode(); // tryDecode();
}, self.timewait); // }, self.timewait);
} }
}; };
......
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