stop empty gets

This commit is contained in:
Mark Nadal 2020-03-13 14:48:51 -07:00
parent 31c8a232b6
commit 09fa9ea74e

1
gun.js
View File

@ -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) }