mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
stop empty gets
This commit is contained in:
parent
31c8a232b6
commit
09fa9ea74e
1
gun.js
1
gun.js
@ -711,6 +711,7 @@
|
||||
if(dup.check(tmp)){ return } dup.track(tmp);
|
||||
tmp = msg._; msg._ = ('function' == typeof tmp)? tmp : function(){};
|
||||
(msg.$ && (msg.$ === (msg.$._||'').$)) || (msg.$ = gun);
|
||||
if(msg.get && obj_empty(msg.get)){ return } // who sending these? Need better way to stop.
|
||||
if(!at.ask(msg['@'], msg)){ // is this machine listening for an ack?
|
||||
DBG && (DBG.u = +new Date);
|
||||
if(msg.get){ Gun.on._get(msg, gun) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user