1
0
forked from circlecloud/tera

refactor: keep client online and optimiz code

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-22 10:16:37 +08:00
parent ae1242686d
commit 8d0cb723c1
11 changed files with 53 additions and 33 deletions

View File

@@ -134,7 +134,7 @@ function GETBLOCK(msg) {
if (msg.Context.SendCount) {
return;
}
var BufWrite;
var BufWrite: Buffer;
var BlockDB = global.SERVER.ReadBlockDB(BlockNum);
var StrSend;
if (BlockDB && (global.CompareArr(BlockDB.TreeHash, TreeHash) === 0 || global.IsZeroArr(TreeHash))) {