mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Merge pull request #623 from ChihChienKung/master
at.NTS never been found
This commit is contained in:
commit
5be08a08ff
4
nts.js
4
nts.js
@ -37,8 +37,8 @@
|
||||
NTS.end = Gun.state();
|
||||
Gun.obj.del(ask, ack);
|
||||
NTS.latency = (NTS.end - NTS.start)/2;
|
||||
if(!at.NTS){ return }
|
||||
NTS.calc = NTS.latency + at.NTS;
|
||||
if(!at.nts && !at.NTS){ return }
|
||||
NTS.calc = NTS.latency + (at.NTS || at.nts);
|
||||
Gun.state.drift -= (NTS.end - NTS.calc)/2;
|
||||
setTimeout(ping, 1000);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user