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

test: continue decode

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